netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* socket(7) error?
@ 2003-08-21  3:19 Matthew Wilcox
  2003-08-21 10:42 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox @ 2003-08-21  3:19 UTC (permalink / raw)
  To: netdev


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.

-- 
"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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: socket(7) error?
  2003-08-21  3:19 socket(7) error? Matthew Wilcox
@ 2003-08-21 10:42 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2003-08-21 10:42 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: netdev

On Thu, Aug 21, 2003 at 04:19:38AM +0100, Matthew Wilcox wrote:
> 
> 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.

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

-Andi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-21 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-21  3:19 socket(7) error? Matthew Wilcox
2003-08-21 10:42 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).