net: SIGPIPE using unix domain socket #44177
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
linux version:
i have go program:
go http server
OutputI requested the following two ways and got the following different results:
1、 by unix domain socket
curl request
curl 127.0.0.1:8888/endpoint -m 0.2
result:
2、 by tcp socket
curl request:
curl 47.92.3.20:8888/endpoint -m 0.2
get result:
555555
The debug I did has the following
1、 strace
unix domain socket(
curl 127.0.0.1:8888/endpoint -m 0.2
)strace -f -v -p 1631
Outputtcp socket( curl 47.92.3.20:8888/endpoint -m 0.)
strace -f -v -p 1631
Outputno broken pipe
What did you expect to see?
I want to get the same result through unix domain socket and tcp socket.
What did you see instead?
Does go's netpoll handle unix domain socket and tcp socket in different ways? I don’t see the difference in netpoll code.
The text was updated successfully, but these errors were encountered: