x/net/websocket: hangs when connecting to a plain TCP socket #58630
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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?
Given a dumb TCP server emulated by
socat STDIO TCP4-LISTEN:12345,fork
, creating a websocket client by dialing to this server locks up the "dialing routine" and I can observe 1 CPU thread use 100%.What did you expect to see?
SetReadDeadline(...)
or alike.What did you see instead?
A thread lockup waiting for network read, probably.
The text was updated successfully, but these errors were encountered: