boost::asio::ip::tcp::iostream two additional connections
Brought to you by:
chris_kohlhoff
Code below:
boost::asio::ip::tcp::iostream s;
s.expires_from_now(boost::posix_time::seconds(30));
s.connect(argv[1], argv[2]);
Why the iostream.connect() creates two additional connections to localhost ?
TCP 127.0.0.1:64952 127.0.0.1:64953 ESTABLISHED
TCP 127.0.0.1:64953 127.0.0.1:64952 ESTABLISHED
and after all doesn't close one after the program ends ....
TCP 127.0.0.1:64952 127.0.0.1:64953 TIME_WAIT
The problem appears in windows 7 x64 MSVC10 SP1.
There's no the problem on linux x86.