http2: stop reading from socket if writes are in progress · nodejs/node@854dba6 · GitHub
Skip to content

Commit 854dba6

Browse files
addaleaxBethGriggs
authored andcommitted
http2: stop reading from socket if writes are in progress
If a write to the underlying socket finishes asynchronously, that means that we cannot write any more data at that point without waiting for it to finish. If this happens, we should also not be producing any more input. This is part of mitigating CVE-2019-9511/CVE-2019-9517. Backport-PR-URL: #29124 PR-URL: #29122 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a319168 commit 854dba6

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

src/node_http2.cc

Lines changed: 18 additions & 1 deletion

src/node_http2.h

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)