Newbie question: how to keep a socket listening?

pwilkins pwilkins at
Fri Jun 24 21:21:57 CEST 2005

On Fri, 24 Jun 2005 11:21:28 -0700, ncf wrote:

> I think your problem /may/ be in the following line of code:
> sa.listen(1)
> I believe what's happening is that the listen() creates a decremental
> counter of the number of connections to accept. Once it decrements to
> 0, it won't accept any more connections. (I'm not at all sure, but that
> sounds like what it's doing.)
Good point, will read up on socket.listen(x) 

> If you find out the problem, please post it up here for all to learn
> from :)
Will do that
> Oh, and just a suggestion, do something like a 'netstat -a -p --inet' on
> the daemon end. (Might not be the completely correct command =\)

I did that is how I know the ports are still begin held
thx, pete

More information about the Python-list mailing list