Windows limitation on number of simultaneously opened sockets/connections per machine

后端 未结 4 1757
青春惊慌失措
青春惊慌失措 2021-01-03 06:04

Let\'s say I have Windows 7 with one real network interface and few loopback interfaces. I have IOCP enabled server that accepts connections from clients. I\'m trying to sim

4条回答
  •  天命终不由人
    2021-01-03 06:08

    I've developed a load testing tool.

    Running on Windows 10/16G RAM, it could created 60,000 connections with server successfully.

    But when try to create more connections, the tool will report "socket WinError 10055 No Buffer Space Available" soon.

    Accord to this article, I think the limitation is the overall socket buffer size of whole OS, not the number of opened file.

提交回复
热议问题