Skip to content

Commit 56c6281

Browse files
http2: fix zombie session crash on socket close
1 parent 9706c30 commit 56c6281

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node_http2.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,8 +1772,9 @@ void Http2Session::OnStreamAfterWrite(WriteWrap* w, int status) {
17721772
// terminate the session to prevent resource leaks and further inconsistent
17731773
// callbacks. (Ref: https://github.com/nodejs/node/issues/61304)
17741774
if (!is_write_in_progress()) {
1775-
Debug(this, "write callback invoked but write not in progress, "
1776-
"possible zombie session");
1775+
Debug(this,
1776+
"write callback invoked but write not in progress, "
1777+
"possible zombie session");
17771778
// Force session termination to clean up resources
17781779
// Don't attempt to send GOAWAY (socket likely already closed)
17791780
if (!is_destroyed()) {

0 commit comments

Comments
 (0)