Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
net: Conn.Read() returns Error with .Timeout()==true on KeepAlive failure #31449
net Docs say:
For a TLS connection that's been severed, Conn.Read() returns a net.Error with
The Error should probably give
Since 1.11, net.Dialer.KeepAlive gets 15*time.Second if unset/zero. This isn't documented in package net.