socket module's listen backlog problem

Jane Austine janeaustine50 at hotmail.com
Mon Apr 28 19:19:41 EDT 2003


I'm running Python 2.3b1, which has been downloaded from python.org as
binary, on my Win XP Pro machine.

socket.SOMAXCONN is 5. I want it to be higher. However, listen with
higher backlog number doesn't work.

I'm using asyncore and removed the following code but it still doesn't
work with more than 5 backlogs.

#from asyncore
        if os.name == 'nt' and num > 5:
            num = 1

I suppose the socket module uses winsock2.h and it's SOMAXCONN is
0x7fffffff.

What's wrong? What can I do to increase listen backlog?




More information about the Python-list mailing list