locked
Why can't maximum length of the queue of pending connections more 5? RRS feed

  • Question

  • Although the listen function is called:

              SOCKET s;

              listen(s, 10);

    or

              listen(s, SOMAXCONN);

    But maximum length of the queue of pending connections is always 5.

    How to set a value which is more 5?

    Thank!

     

    Tuesday, September 26, 2006 9:00 AM

Answers

  • The Windows Sockets 1.1 specification indicates that the maximum allowable value for a backlog is 5; however, Windows NT 4.0, Windows 2000 Server, and Windows Server 2003 accept a max backlog of 200. Windows XP Professional accepts a max backlog of 5.
    Monday, October 23, 2006 3:32 AM

All replies

  • The Windows Sockets 1.1 specification indicates that the maximum allowable value for a backlog is 5; however, Windows NT 4.0, Windows 2000 Server, and Windows Server 2003 accept a max backlog of 200. Windows XP Professional accepts a max backlog of 5.
    Monday, October 23, 2006 3:32 AM
  • Hi Mike,

    Here you have replied to a question that maximim backlog connections queu is 5 but in MSDN ,they have replied with maximum value as 10.Could you please clear me your source of information.I am confused which set of information is correct .For reference i am posting link of thet msdn article.You can refer that link

     

    http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.listen(VS.71).aspx

     

    Waiting for your reply

     

    Thanks

    Amit Gupta

    Tuesday, May 8, 2007 6:14 AM