Browse Source

Merge pull request #2550 from canton7/feature/deadline

staticClient.connect(): don't handshake twice (fixes #2547, #2548)
Audrius Butkevicius 10 years ago
parent
commit
38e9b92c42
1 changed files with 0 additions and 3 deletions
  1. 0 3
      lib/relay/client/static.go

+ 0 - 3
lib/relay/client/static.go

@@ -200,9 +200,6 @@ func (c *staticClient) connect() error {
 	c.mut.Unlock()
 
 	conn := tls.Client(tcpConn, c.config)
-	if err = conn.Handshake(); err != nil {
-		return err
-	}
 
 	if err := conn.SetDeadline(time.Now().Add(c.connectTimeout)); err != nil {
 		conn.Close()