Skip to contentSkip to conversation

SO_RCVTIMEO and SO_SNDTIMEO implemented? manpage says no, kernel yes?

DISCUSSION bert hubert 1 participant 1 message Nov 30, 2000

lore
Share & tools
lore
#0 lore raw

Hi,

I was reading the works of Stevens, and saw the very neat SO_RCVTIMEO and SO_SNDTIMEO features mentioned. Socket.7 told me that these socket options aren't implemented:

SO_RCVTIMEO and SO_SNDTIMEO
Specify the sending or receiving timeouts until reporting an error. They are fixed to a protocol specific setting in Linux and cannot be read or written. Their functionality can be emulated using alarm(2) or setitimer(2).

However, reading 2.4.0test10 net/core/sock.c appears to indicate that the kernel at least does some of the work. Does anybody know if these socket options work as they should under Linux, and if so, which versions?

I might even whip up a better entry for the manpage if given enough data.

Regards,

bert hubert

Signature · 7 lines
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/