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.") }