We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
deadline
WriteControl
deadline.IsZero()
If the deadline argument is deadline.IsZero() then 1000 hours are used instead:
websocket/conn.go
Lines 448 to 456 in d08ee1a
Behaviour should be documented and better design decision has to be made:
Either:
errWriteTimeout
Call WriteControl with a zero-deadline but fail to respond for ~41 days.
This is rather theoretical, but a non-conformant websocket or bad firewall might lead to this.
Originally reported in #841 (comment). Confirmed as "unexpected" by maintainer in #841 (comment).
In practice probably doesn't affect anybody; it's just weird.