I do some IOCP Server and Client test. The IOCP Server accept the clients' connects and do nothing but recv datapackets from clients. The clients connect the server and send datapackets to server in an infinit loop.
I set a counter. It increase when the server accepts a client, and decrease when a socket is closed.
Here is the question: The counter increases to 32261 and not increases any more. The Server cannot accept more connects, The GetLastError() return 10055, WSAENOBUF.
My OS is Windows XP, memory is 4GB. And I have check the nonpaged memory. I think my memory is enough.
What limits the maximum of connects? How can I enlarge the maximum connects?