stream.go
branch20120108-close
changeset 66 4558994ab3b3
parent 64 ac0639692317
child 72 53f15893a1a7
equal deleted inserted replaced
65:3d69b31c3839 66:4558994ab3b3
   408 	// for it to signal that it's working again.
   408 	// for it to signal that it's working again.
   409 	cl.socketSync.Add(1)
   409 	cl.socketSync.Add(1)
   410 	cl.socket = tls
   410 	cl.socket = tls
   411 	cl.socketSync.Wait()
   411 	cl.socketSync.Wait()
   412 
   412 
       
   413 	// Reset the read timeout on the (underlying) socket so the
       
   414 	// reader doesn't get woken up unnecessarily.
       
   415 	tcp.SetReadTimeout(0)
       
   416 
   413 	if Log != nil {
   417 	if Log != nil {
   414 		Log.Info("TLS negotiation succeeded.")
   418 		Log.Info("TLS negotiation succeeded.")
   415 	}
   419 	}
   416 	cl.Features = nil
   420 	cl.Features = nil
   417 
   421