Setting timeout for read api

Swaroop tifosi_416 at indiatimes.com
Sat Mar 4 02:53:19 EST 2006


PLS HELP..I am working on socket programming as part of my final year
project. I want to know how to set a timeout on read api that reads
from a socket. Is it possible using SIGALRM signal?Will setting
O_NONBLOCK flag of the socket help? Is there any other way to do it?




More information about the Python-list mailing list