| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d9d0d0e commit 88babd5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1015,7 +1015,7 @@ const { NGHTTP2_CANCEL } = http2.constants; | |||
| 1015 | 1015 | const req = client.request({ ':path': '/' }); | |
| 1016 | 1016 | ||
| 1017 | 1017 | // Cancel the stream if there's no activity after 5 seconds | |
| 1018 | - req.setTimeout(5000, () => req.rstStream(NGHTTP2_CANCEL)); | ||
| 1018 | + req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL)); | ||
| 1019 | 1019 | ``` | |
| 1020 | 1020 | ||
| 1021 | 1021 | #### http2stream.state | |
| Back | FazBrowse Home | New Git URL |
0 commit comments