From b1da54a5493f5b8e9552e564f578fdacdeea8f7e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 18 Feb 2012 02:19:09 +0900 Subject: [PATCH] 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. --- lib/includes/spdylay/spdylay.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/includes/spdylay/spdylay.h b/lib/includes/spdylay/spdylay.h index 740b3c91..f3d13392 100644 --- a/lib/includes/spdylay/spdylay.h +++ b/lib/includes/spdylay/spdylay.h @@ -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 {