From e260006182067ef0f34523f13f64481b32e52314 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 8 Sep 2015 02:27:59 +0900 Subject: [PATCH] last_write_len must not be 0, which makes weight useless --- lib/nghttp2_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nghttp2_stream.c b/lib/nghttp2_stream.c index dc9ab462..25c3a73b 100644 --- a/lib/nghttp2_stream.c +++ b/lib/nghttp2_stream.c @@ -78,7 +78,7 @@ void nghttp2_stream_init(nghttp2_stream *stream, int32_t stream_id, stream->queued = 0; stream->descendant_last_cycle = 0; stream->cycle = 0; - stream->last_writelen = 0; + stream->last_writelen = NGHTTP2_DATA_PAYLOADLEN; } void nghttp2_stream_free(nghttp2_stream *stream) {