Re: TCP server stop receiving new connections



Alexander Nickolov escribió:
What do you do in your OnAccept handler? In particular,
do you try to accept multiple sockets? A test to try is to
reset the event mask of your listening socket each time you
exit its OnAccept handler.

Also, as a reality check - make sure your message loop
never gets stuck... E.g. when you break into the debugger,
almost always you should end up in the message loop.


I forget to say. Adding AsyncSelect at the end of OnAccept handlers does not change behaviour.

.


Loading