Don't force a TLS handshake for new clients anymore. Go's tls package has made this guaranteed for some time.

This commit is contained in:
Mikkel Krautz 2011-04-27 22:03:32 +02:00
parent 705b43bcd5
commit 18adc1a41d

View file

@ -1035,16 +1035,6 @@ func (s *Server) ListenAndMurmur() {
log.Printf("Unable to accept() new client.")
}
tls, ok := conn.(*tls.Conn)
if !ok {
log.Panic("Internal inconsistency error.")
}
// Force the TLS handshake to get going. We'd like
// this to happen as soon as possible, so we can get
// at client certificates sooner.
tls.Handshake()
// Create a new client connection from our *tls.Conn
// which wraps net.TCPConn.
err = s.NewClient(conn)