Re: socket.socket.settimeout implementation

2006-04-07 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >Now my observation on FC4 ( kernel version 2.6.11-1.1369_FC4) >"select()" can return before timeout with a >"Interrupted system call" (EINTR) error, Nothing Red-Hat-specific, or even Linux-specific, about this. It's a standard *nix thin

socket.socket.settimeout implementation

2006-04-05 Thread jnair
When using socket.socket.settimeout we normally only guard against "socket.timeout" exception.Now the implementation of "settimeout" in "Python-2.4.3/Modules/socketmodule.c" sets the socket fd to nonblocking and uses "select()" to timeout as seen below in line 1487 and 1386 : static PyObject * 1