Restore this bit of code that got lost in the shuffle. 20120108-close
authorChris Jones <chris@cjones.org>
Sun, 08 Jan 2012 12:54:06 -0700
branch20120108-close
changeset 66 4558994ab3b3
parent 65 3d69b31c3839
child 67 e8ad85bb6608
Restore this bit of code that got lost in the shuffle.
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.")
 	}