stream.go
branch20120108-close
changeset 66 4558994ab3b3
parent 64 ac0639692317
child 72 53f15893a1a7
--- 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.")
 	}