Skip to content

Commit 780ec8a

Browse files
http2: handle write callback gracefully in zombie sessions
1 parent 6da4fe9 commit 780ec8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_http2.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,8 @@ void Http2Session::OnStreamAfterWrite(WriteWrap* w, int status) {
17711771
// but the session hasn't been properly notified. Instead of crashing, we
17721772
// silently handle the inconsistent state. (Ref: https://github.com/nodejs/node/issues/61304)
17731773
if (!is_write_in_progress()) {
1774-
Debug(this, "write callback invoked but write not in progress, possible zombie session");
1774+
Debug(this, "write callback invoked but write not in progress, "
1775+
"possible zombie session");
17751776
return;
17761777
}
17771778
set_write_in_progress(false);

0 commit comments

Comments
 (0)