Skip to contentSkip to conversation

socket(7) error?

DISCUSSION Matthew Wilcox 2 participants 2 messages Aug 21, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi. There's a bug report from Martin Pool against manpages-dev suggesting the following paragraph from socket(7) is incorrect:

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 emu- lated using alarm(2) or setitimer(2).

He says:

In fact, these options do seem to be at least partially implemented in Linux 2.4.20. You can at least set and retrieve a value against a socket, and it does seem to affect the (complex) network scheduling code.

I have not actually tested that they work as advertised, so it might be good to check with somebody who knows more about it. But the manpage does seem to be at least partially wrong.

This is me checking with people who know more about it ;-) Let me know what to say and I'll send a patch to Andries.

Signature · 3 lines
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
#1 lore raw
Quoted 10 lines · Matthew Wilcox

Hi. There's a bug report from Martin Pool against manpages-dev suggesting the following paragraph from socket(7) is incorrect:

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 emu- lated using alarm(2) or setitimer(2).

Quoted 6 lines

He says:

In fact, these options do seem to be at least partially implemented in Linux 2.4.20. You can at least set and retrieve a value against a socket, and it does seem to affect the (complex) network scheduling code.

It was correct when the manpage was written, but wasn't updated later when option was implemented.

-Andi