forked from quic-go/quic-go
Merge pull request #2807 from lucas-clemente/fix-post-handshake-message-error-handling
fix error handling when receiving post handshake messages
This commit is contained in:
@@ -499,7 +499,11 @@ func (h *cryptoSetup) handlePostHandshakeMessage() {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
if err := h.conn.HandlePostHandshakeMessage(); err != nil {
|
if err := h.conn.HandlePostHandshakeMessage(); err != nil {
|
||||||
h.onError(<-alertChan, err.Error())
|
select {
|
||||||
|
case <-h.closeChan:
|
||||||
|
case alert := <-alertChan:
|
||||||
|
h.onError(alert, err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user