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

后端 未结 4 1761
青春惊慌失措
青春惊慌失措 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:17

    Both TCP and UDP use an unsigned 16-bit integer to designate port number. I don't imagine any implementation in any operating system is going to be able to open more than 65535 sockets per bound address at best. Additionally, I wouldn't be surprised if Windows doesn't implement fully isolated state tables for each adapter or each bound address but instead relies on a global state table. If that is the case, it would be a Windows network architecture limit instead of a soft, configurable limit.

提交回复
热议问题