socket module's listen backlog problem

Jane Austine janeaustine50 at
Tue Apr 29 01:19:41 CEST 2003

I'm running Python 2.3b1, which has been downloaded from 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 == 'nt' and num > 5:
            num = 1

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

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

More information about the Python-list mailing list