What is the upper limit on the number of open sockets I can have in Windows Server 2003

前端 未结 3 2064
礼貌的吻别
礼貌的吻别 2020-12-10 22:13

I\'m building a chat server with .NET. I have tried opening about 2000 client connections and my Linksys WRT54GL router (with tomato firmware) drops dead each time. The same

3条回答
  •  眼角桃花
    2020-12-10 22:34

    Had for days a problem with the available sockets on my Window 7 machine. After reading some articles about socket leaks in Win 7, I applied a Windows patch - nothing changed.

    Below there is an article describing windows connection problems in great detail: http://technet.microsoft.com/en-us/magazine/2007.12.network.aspx

    For me it worked the following:

    1. Open Regedit
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters: Create TcpNumConnections, REG_DWORD, decimal value 500 (this can be set according to your needs); EnableConnectionRateLimiting, REG_DWORD, value 0;
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip: Create MaxUserPort, REG_DWORD, decimal value 65534
    2. Restart Windows

提交回复
热议问题