sockets: client dies...
Cary O'Brien
cobrien at Radix.Net
Sat Jan 27 08:29:21 EST 2001
In article <94pt9p$o6e$1 at nntp6.u.washington.edu>,
Donn Cave <donn at u.washington.edu> wrote:
>Quoth Keith Murphy <kpmurphy at my-deja.com>:
>...
>| if i don't setblocking to 0, then it will get hung up on one client...
>| waiting for a message, right? i'm afraid i don't know what select()
>| is...
>|
>| i guess what i'd like is a better way to sit around and listen to n
>| hosts, and be able to detect when one has died.
>
>select() is documented, it's in the select module. If you want to
>really understand sockets and a lot more, the classic reference is
>Stevens, any decent bookstore will have it. If you want a solution
>already written in Python, asyncore in the standard distribution
>might be worth a look.
>
Also check out my personal favorite lately, the SocketServer and TCPServer
modules.
-- cary
More information about the Python-list
mailing list