| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e85ca7a commit 82af8ac
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -927,8 +927,9 @@ the value is `undefined`, the stream is not yet ready for use. | |||
| 927 | 927 | All [`Http2Stream`][] instances are destroyed either when: | |
| 928 | 928 | ||
| 929 | 929 | * An `RST_STREAM` frame for the stream is received by the connected peer, | |
| 930 | - and pending data has been read. | ||
| 931 | - * The `http2stream.close()` method is called, and pending data has been read. | ||
| 930 | + and (for client streams only) pending data has been read. | ||
| 931 | + * The `http2stream.close()` method is called, and (for client streams only) | ||
| 932 | + pending data has been read. | ||
| 932 | 933 | * The `http2stream.destroy()` or `http2session.destroy()` methods are called. | |
| 933 | 934 | ||
| 934 | 935 | When an `Http2Stream` instance is destroyed, an attempt will be made to send an | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2367,7 +2367,7 @@ ssize_t Http2Stream::Provider::Stream::OnRead(nghttp2_session* handle, | |||
| 2367 | 2367 | return NGHTTP2_ERR_DEFERRED; | |
| 2368 | 2368 | } | |
| 2369 | 2369 | ||
| 2370 | - if (stream->queue_.empty() && !stream->IsWritable()) { | ||
| 2370 | + if (stream->available_outbound_length_ == 0 && !stream->IsWritable()) { | ||
| 2371 | 2371 | Debug(session, "no more data for stream %d", id); | |
| 2372 | 2372 | *flags |= NGHTTP2_DATA_FLAG_EOF; | |
| 2373 | 2373 | if (stream->HasTrailers()) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments