Skip to content

Commit f505f7a

Browse files
committed
fix node crash if no client hello received
1 parent de5a3ff commit f505f7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/quic/session.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,9 +2084,9 @@ void Session::SelectPreferredAddress(
20842084
bool Session::SendConnectionClose() {
20852085
CHECK(!NgCallbackScope::InNgCallbackScope(this));
20862086

2087-
// Do not send any frames at all if we're in the draining period
2088-
// or in the middle of a silent close
2089-
if (is_in_draining_period() || state_->silent_close)
2087+
// Do not send any frames at all if we're in the draining period,
2088+
// in the middle of a silent close or already destroyed.
2089+
if (is_in_draining_period() || state_->silent_close || is_destroyed())
20902090
return true;
20912091

20922092
// The specific handling of connection close varies for client

0 commit comments

Comments
 (0)