Re: SO_RCVTIMEO, SO_SNDTIMEO

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 26 Aug 1998 11:34:22 +0100 (BST)


> It seems to me that the Linux kernel does not support setsockopt
> system call for changing receive and send timeout values for a socket . Is
> there any other mechanism ioctl / fcntl thru which receive timeouts can be set
> on a socket .

2.0 doesnt implement SO_SNDTIMEO/RCVTIMEO. 2.1.x implements the POSIX 1003.1g
required parts of it (get only).

The actual reasoning for this is pretty simple. RTIMEO/WTIMEO complicate
the socket code a lot and thus slow down all processes, but they are basically
almost never used.

The same functionality is available by using alarms and itimers to allow
the program to do its own timeouts.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html