Go 1.13 will cause spurious deadline events in TCP servers

192 views
Skip to first unread message

Liam

unread,
Aug 7, 2019, 4:10:13 PM8/7/19
to golang-nuts
Go 1.13 enables TCP keepalive by default, and keepalive errors appear to be "deadline" events. This will impact working code that sets deadlines, perhaps breaking it in some cases. The fix is to disable TCP keepalives.

This wasn't known when the listener keepalive-by-default change was accepted. I believe that change should be reverted, but the Go team declined...


Reply all
Reply to author
Forward
0 new messages