server bootstrapping upon connection (WARNING: LONG)

Benjamin Han this at is.for.spambot
Wed Feb 11 11:43:14 EST 2004


On 2004-02-11 07:00:32 -0500, "Krzysztof Stachlewski" 
<stach at fr.REMOVE.pl> said:

> "Benjamin Han" <this at is.for.spambot> wrote in message
> news:2004021019594716807%this at isforspambot...
> 
>>> I just wanted to say, that even if the server is
>>> listening on that port, that connection attempts may fail.
>> 
>> How is it possible? Could you explain a bit more?
> 
> Your server may be accepting connections slower than
> the speed at which new connections are coming.
> In such situation your operating system maintains a list
> of those awaiting connections. You can control the length of
> this list with the "backlog" parameter of the "listen" function.
> If the list is full, new connections may simply be dropped
> as if the server was not listening at all.
> 
> Stach

Thanks for the tip - the default queue size is 5. I've since changed it 
into 100 (much more than what it actually needs), but the original 
problem remains.




More information about the Python-list mailing list