# HG changeset patch # User Chris Jones # Date 1326052446 25200 # Node ID 4558994ab3b394506c341c96fbabafe719b9d736 # Parent 3d69b31c38391001dfefd2813a942059ba9c92ed Restore this bit of code that got lost in the shuffle. diff -r 3d69b31c3839 -r 4558994ab3b3 stream.go --- a/stream.go Sun Jan 08 12:53:45 2012 -0700 +++ b/stream.go Sun Jan 08 12:54:06 2012 -0700 @@ -410,6 +410,10 @@ cl.socket = tls cl.socketSync.Wait() + // Reset the read timeout on the (underlying) socket so the + // reader doesn't get woken up unnecessarily. + tcp.SetReadTimeout(0) + if Log != nil { Log.Info("TLS negotiation succeeded.") }