Re: [omega-g1:11072] Re: [PATCH] net: configurable sysctlparameter "net.core.tcp_lowat" for sk_stream_min_wspace()

From: David Miller
Date: Mon Aug 22 2011 - 14:35:59 EST


From: "Jun.Kondo" <jun.kondo@xxxxxxxxxxx>
Date: Mon, 22 Aug 2011 09:33:52 +0900

> is it (really) network problem ?
> or is wmem not enough free to write?

Oh yes you can indeed make this determination, by using the socket
timeouts via the SO_RCVTIMEO and SO_SNDTIMEO socket options.

Timeouts, when hit, will return -EINTR, whereas lack of buffer space
on a non-blocking socket will return -EAGAIN.

I think you simply are unaware of the facilities available in the BSD
socket API.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/