★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/30e2221a15Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
doc: fix s/rstStream/close in example
PR-URL: #18088
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
jasnell authored and evanlucas committed Jan 30, 2018
1 parent 1c81a05 commit 30e2221a15c11a9625e017873c3c905950376a14
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/http2.md
@@ -1015,7 +1015,7 @@ const { NGHTTP2_CANCEL } = http2.constants;
const req = client.request({ ':path': '/' });
// Cancel the stream if there's no activity after 5 seconds
req.setTimeout(5000, () => req.rstStream(NGHTTP2_CANCEL));
req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL));
```

#### http2stream.state

0 comments on commit 30e2221

Please sign in to comment.