nghttpd: Reserve 10 headers for request headers

This commit is contained in:
Tatsuhiro Tsujikawa 2014-12-24 01:05:12 +09:00
parent ac11ba32ee
commit 7bf5be9c17
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ Config::~Config() { nghttp2_option_del(session_option); }
Stream::Stream(Http2Handler *handler, int32_t stream_id)
: handler(handler), rtimer(nullptr), wtimer(nullptr), body_left(0),
stream_id(stream_id), file(-1) {}
stream_id(stream_id), file(-1) {
headers.reserve(10);
}
Stream::~Stream() {
if (file != -1) {