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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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...