improve error handling in session

This commit is contained in:
Lucas Clemente
2016-04-26 10:27:11 +02:00
parent 7e9f185f79
commit 8f221e6eab
3 changed files with 14 additions and 13 deletions

View File

@@ -19,8 +19,7 @@ const (
QUIC_ENCRYPTION_FAILURE = protocol.ErrorCode(13)
QUIC_PACKET_TOO_LARGE = protocol.ErrorCode(14)
// QUIC_PACKET_FOR_NONEXISTENT_STREAM= Data was sent for a stream which did not exist.
// QUIC_CLIENT_GOING_AWAY= The client is going away (browser close, etc.)
// QUIC_SERVER_GOING_AWAY= The server is going away (restart etc.)
QUIC_PEER_GOING_AWAY = protocol.ErrorCode(16)
QUIC_INVALID_STREAM_ID = protocol.ErrorCode(17)
QUIC_TOO_MANY_OPEN_STREAMS = protocol.ErrorCode(18)
// QUIC_CONNECTION_TIMED_OUT= We hit our pre-negotiated (or default) timeout