Problem with CSocket Listen function
-
I am calling the Listen function as follows: Listen(1); but I can still Accept more than one connections. I know for sure that the first connection is still alive when I accept the second one or any other ones after. Without having to post all my code, do you have any idea of what I may be doing wrong? Thanks! jpyp
-
I am calling the Listen function as follows: Listen(1); but I can still Accept more than one connections. I know for sure that the first connection is still alive when I accept the second one or any other ones after. Without having to post all my code, do you have any idea of what I may be doing wrong? Thanks! jpyp
The 1 param is the number of un-accepted connections that can be queued. So, you may have many connections open, regardless of your listen queue size. The listen queue stores the pending connections until you "accept" them. So, in a busy environment, you need to have a fair sized queue so that you do not refuse clients because you cannot accept connections fast enough. onwards and upwards...
-
The 1 param is the number of un-accepted connections that can be queued. So, you may have many connections open, regardless of your listen queue size. The listen queue stores the pending connections until you "accept" them. So, in a busy environment, you need to have a fair sized queue so that you do not refuse clients because you cannot accept connections fast enough. onwards and upwards...