unix - Non-blocking sockets takes longer to connect on first connection -


i have client application uses non-blocking sockets connect server on tcp/ip.

if application stays idle few minutes, when tries connect server takes little longer , select() call fails timeout. subsequent calls substantially faster , connection succeeds.

when application coming idle state, first connection takes more 2 seconds. after that, connects in few milliseconds.

what can cause select() timeout in first attempt after being idle?

we traced delay in first connection attempt a10 load balancer.

the problem isn't fixed yet, since don't believe software-related anymore, i'm closing question.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -