stream.go
changeset 78 a5848c75d270
parent 76 caa722ab8a0f
child 81 a74e7fc4ecee
equal deleted inserted replaced
77:edda99a69002 78:a5848c75d270
   399 	cl.socket = nil
   399 	cl.socket = nil
   400 	cl.socketSync.Add(1)
   400 	cl.socketSync.Add(1)
   401 	cl.socketSync.Wait()
   401 	cl.socketSync.Wait()
   402 
   402 
   403 	// Negotiate TLS with the server.
   403 	// Negotiate TLS with the server.
   404 	tls := tls.Client(tcp, nil)
   404 	tls := tls.Client(tcp, TLSConfig)
   405 
   405 
   406 	// Make the TLS connection available to the reader, and wait
   406 	// Make the TLS connection available to the reader, and wait
   407 	// for it to signal that it's working again.
   407 	// for it to signal that it's working again.
   408 	cl.socketSync.Add(1)
   408 	cl.socketSync.Add(1)
   409 	cl.socket = tls
   409 	cl.socket = tls