I'm trying to establish many(the more - the merrier) socket connections on Windows 2003 server.
I make several server sockets and connect to them from current computer (1 server socket serves 1 client). I also make 1 server socket which serves many connections from another local computer.
When I make 4000 server sockets and 4000 connections to them, plus 4000 client connections to one server socket - everything works fine.
When I try the same thing with 5000 (5000 server sockets and 5000 connections to them) and start connecting clients remote, 1779th client and all the following (1780th, 1781th...) throw exception that connection has been reset or refused.
I have 8Gb RAM, MaxUserPort in registery set to 65534 and it didn't help. I've also tried to set MaxFreeTcbs to 12000 (not sure if it's necessary). Where else could be the problem?