Commit e2600061 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

last_write_len must not be 0, which makes weight useless

parent 7d481db2
...@@ -78,7 +78,7 @@ void nghttp2_stream_init(nghttp2_stream *stream, int32_t stream_id, ...@@ -78,7 +78,7 @@ void nghttp2_stream_init(nghttp2_stream *stream, int32_t stream_id,
stream->queued = 0; stream->queued = 0;
stream->descendant_last_cycle = 0; stream->descendant_last_cycle = 0;
stream->cycle = 0; stream->cycle = 0;
stream->last_writelen = 0; stream->last_writelen = NGHTTP2_DATA_PAYLOADLEN;
} }
void nghttp2_stream_free(nghttp2_stream *stream) { void nghttp2_stream_free(nghttp2_stream *stream) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment