The send operations are waiting on the peer's socket buffer, but we shall
use our timeout value. Provide a test for that.
Fixes: d15792780760ef94647af9b377b5f0a80e1826bc
Reported by: phk
Differential D53081
unix/stream: repair SO_SNDTIMEO Authored by glebius on Tue, Oct 14, 4:48 AM. Tags None Referenced Files
Details The send operations are waiting on the peer's socket buffer, but we shall Fixes: d15792780760ef94647af9b377b5f0a80e1826bc
Diff Detail
Event TimelineComment Actions Do we not block at all when sending on a dgram socket and the receiver has insufficient space? Comment Actions I have two comments in addition to the inline ones:
Comment Actions This was found by Varnish Cache testcase s00012, which passes on 14.3p4 and fails on 15.0-ALPHA5 (Those are the best coordinates I have) Failure mode is that the socket option is ignored and we never time out. Comment Actions Yes, datagram shall not block. It returns ENOBUFS when receiver has no space. This is a historical behavior and once I tried to change that ENOBUFS, and there was a lot of fallout on different application sides. Go runtime in the first place. | ||||||||||||||||||||||||||||||||||||||||