* SO_RCVTIMEO, SO_SNDTIMEO
@ 2001-02-13 0:38 Chris Evans
2001-02-13 10:19 ` Steve Whitehouse
0 siblings, 1 reply; 2+ messages in thread
From: Chris Evans @ 2001-02-13 0:38 UTC (permalink / raw)
To: linux-kernel
Hi,
I notice the entities in the subject line have appeared in Linux 2.4.
What is their functional specification? I guess they trigger if no bytes
are received/send within a consecutive period. How does the app get the
error? -EPIPE for a blocking read/write? If so, does SIGPIPE
get raised? Or is -ETIMEDOUT used? ...
TIA,
Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SO_RCVTIMEO, SO_SNDTIMEO
2001-02-13 0:38 SO_RCVTIMEO, SO_SNDTIMEO Chris Evans
@ 2001-02-13 10:19 ` Steve Whitehouse
0 siblings, 0 replies; 2+ messages in thread
From: Steve Whitehouse @ 2001-02-13 10:19 UTC (permalink / raw)
To: Chris Evans; +Cc: linux-kernel
Hi,
They are the maximum amount of time that a send or receive call will
block for. The standard socket error returns apply, so if data has
been sent or received, then the return value will be the amount of
data transferred; if no data has been transferred and the timeout
has been reached then -1 is returned with errno=EAGAIN just as if the socket
was specified to be nonblocking. If the timeout is set to zero (the default)
then the operation will never timeout.
Steve.
>
>
> Hi,
>
> I notice the entities in the subject line have appeared in Linux 2.4.
>
> What is their functional specification? I guess they trigger if no bytes
> are received/send within a consecutive period. How does the app get the
> error? -EPIPE for a blocking read/write? If so, does SIGPIPE
> get raised? Or is -ETIMEDOUT used? ...
>
> TIA,
> Chris
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://vger.kernel.org/lkml/
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-13 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13 0:38 SO_RCVTIMEO, SO_SNDTIMEO Chris Evans
2001-02-13 10:19 ` Steve Whitehouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®