I have just realized looking through TCPView that one single TCP connection established using boost::asio creates two connections. One of them using local ports and a second one with the desired remote port. Why? Is this behaviour normal? Is there a way of creating just one?
This question was originally posted several years ago:
but nobody replayed.
Edit:
I'm connecting to the port 8001 and this is what I see with netstat -nao:
TCP 127.0.0.1:10246 127.0.0.1:8001 ESTABLISHED 3252
TCP 127.0.0.1:10244 127.0.0.1:10245 ESTABLISHED 3252
TCP 127.0.0.1:10245 127.0.0.1:10244 ESTABLISHED 3252
Thank you!