From 59329b0070e5f572bf436c1bab152ed401657110 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 8 Feb 2012 01:25:26 +0900 Subject: [PATCH] Set buffer size of inbound frames to 16KiB. --- lib/spdylay_session.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/spdylay_session.h b/lib/spdylay_session.h index 740374b9..077fef0a 100644 --- a/lib/spdylay_session.h +++ b/lib/spdylay_session.h @@ -51,8 +51,12 @@ typedef struct { size_t framebufoff; } spdylay_active_outbound_item; +/* Buffer length for inbound SPDY frames. Same value for the size of + message block of SSLv3/TLSv1 */ +#define SPDYLAY_INBOUND_BUFFER_LENGTH 16384 + typedef struct { - uint8_t buf[4096]; + uint8_t buf[SPDYLAY_INBOUND_BUFFER_LENGTH]; uint8_t *mark; uint8_t *limit; } spdylay_inbound_buffer;