mirror of
https://github.com/moparisthebest/spdylay
synced 2024-11-04 16:45:07 -05:00
Made SPDYLAY_ERR_ZLIB FATAL error. Removed SPDYLAY_ERR_ZLIB_BUF.
If SPDYLAY_ERR_ZLIB is encountered, zlib context is out of sync. So we cannot further SYN_STREAM/SYN_REPLY/HEADERS frames. I'm not sure we should send GOAWAY in this case. So bail out with fatal error and drop connection for now.
This commit is contained in:
parent
005883e363
commit
b1da54a549
@ -43,8 +43,6 @@ typedef struct spdylay_session spdylay_session;
|
||||
|
||||
typedef enum {
|
||||
SPDYLAY_ERR_INVALID_ARGUMENT = -501,
|
||||
SPDYLAY_ERR_ZLIB = -502,
|
||||
SPDYLAY_ERR_ZLIB_BUF = -503,
|
||||
SPDYLAY_ERR_WOULDBLOCK = -504,
|
||||
SPDYLAY_ERR_PROTO = -505,
|
||||
SPDYLAY_ERR_INVALID_FRAME = -506,
|
||||
@ -56,6 +54,7 @@ typedef enum {
|
||||
SPDYLAY_ERR_FATAL = -900,
|
||||
SPDYLAY_ERR_NOMEM = -901,
|
||||
SPDYLAY_ERR_CALLBACK_FAILURE = -902,
|
||||
SPDYLAY_ERR_ZLIB = -903,
|
||||
} spdylay_error;
|
||||
|
||||
typedef enum {
|
||||
|
Loading…
Reference in New Issue
Block a user