nghttpd: Reserve 10 headers for request headers
This commit is contained in:
parent
ac11ba32ee
commit
7bf5be9c17
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue