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