From 742d80aac45f4d33bca8132f7c5dc71cb62e4761 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 9 Jan 2015 09:51:46 +0900 Subject: [PATCH] nghttpx: Use smaller write buffer --- src/shrpx_client_handler.h | 2 +- src/shrpx_http2_session.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_client_handler.h b/src/shrpx_client_handler.h index 138899df..0eb66e54 100644 --- a/src/shrpx_client_handler.h +++ b/src/shrpx_client_handler.h @@ -135,7 +135,7 @@ public: int64_t body_bytes_sent); WorkerStat *get_worker_stat() const; - using WriteBuf = RingBuf<65536>; + using WriteBuf = RingBuf<16384>; using ReadBuf = RingBuf<8192>; WriteBuf *get_wb(); diff --git a/src/shrpx_http2_session.h b/src/shrpx_http2_session.h index 422f876d..a5df3b81 100644 --- a/src/shrpx_http2_session.h +++ b/src/shrpx_http2_session.h @@ -168,8 +168,8 @@ public: CONNECTION_CHECK_STARTED }; + using WriteBuf = RingBuf<16384>; using ReadBuf = RingBuf<8192>; - using WriteBuf = RingBuf<65536>; private: ev_io wev_;