Clear upgrader handshake deadline.

This commit is contained in:
Gary Burd 2014-04-21 06:28:28 -07:00
parent db1c080f90
commit 1e6e1281b0
1 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,9 @@ func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request, responseHeade
netConn.Close() netConn.Close()
return nil, err return nil, err
} }
if u.HandshakeTimeout > 0 {
netConn.SetWriteDeadline(time.Time{})
}
return c, nil return c, nil
} }