aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorBen Burkert <ben@benburkert.com>2018-05-21 19:28:19 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2018-05-23 01:45:00 +0000
commit92bdfab795a1245d8b81a6e841d5e5aa52f3a790 (patch)
treee55617aed5b678258acb87e150c46889e49a5346 /src/debug
parent132900982c2b28470559afcdc43f517cdf285e9c (diff)
downloadgo-92bdfab795a1245d8b81a6e841d5e5aa52f3a790.tar.xz
internal/poll: disable splice on old linux versions
The splice syscall is buggy prior to linux 2.6.29. Instead of returning 0 when reading a closed socket, it returns EAGAIN. While it is possible to detect this (HAProxy falls back to recv), it is simpiler to avoid using splice all together. the "fcntl(fd, F_GETPIPE_SZ)" syscall is used detect buggy versions of splice as the syscall returns EINVAL on versions prior to 2.6.35. Fixes #25486 Change-Id: I860c029f13de2b09e95a7ba39b76ac7fca91a195 Reviewed-on: https://go-review.googlesource.com/113999 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions