]> Cypherpunks repositories - gostls13.git/commit
net: don't use splice for unix{packet,gram} connections
authorAndrei Tudor Călin <mail@acln.ro>
Fri, 21 Sep 2018 01:32:47 +0000 (03:32 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 24 Sep 2018 17:25:15 +0000 (17:25 +0000)
commit8d6a455df42b016ed2f7071e70718cad940937f9
tree9f7723c4d06164b7b68aa7a48be4d3180b75fdc2
parentc22c7607d3657f7945580f5cf5e0f612c694389f
net: don't use splice for unix{packet,gram} connections

As pointed out in the aftermath of CL 113997, splice is not supported
for SOCK_SEQPACKET or SOCK_DGRAM unix sockets. Don't call poll.Splice
in those cases.

Change-Id: Ieab18fb0ae706fdeb249e3f54d51a3292e3ead62
Reviewed-on: https://go-review.googlesource.com/136635
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/splice_linux.go
src/net/splice_test.go