equal
deleted
inserted
replaced
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 |