I have a simple thing which listens on a socket for incoming connections. It binds to the 'listen' socket, BeginAcccept
s the socket, calls EndAccept
in the handler then immediately re-issues the BeginAccept
.
This all works well here in London, and it's happily accepting 20+ short lived connections a second (as part of my stress testing).
Now, I'm getting a computer in Asia (200ms ping) to keep connecting. This works as well, but it holds up the other connections, adding a lag to the acceptance of local sockets.
I am expecting transmission to this computer to be slow and subject to latency, but I can't see why it would hold up other connections being established.
The end effect is that local connections are held up by this long-distance connection creating a local lag.
Any ideas what I can do about this?