Skip to content

Commit

Permalink
Add notification to readers when ping fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexibu authored Dec 13, 2024
1 parent 338ecb4 commit cc47328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/vibe/http/websockets.d
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,8 @@ scope:
if (!m_pongReceived) {
logDebug("Pong skipped. Closing connection.");
close();
m_pingTimer.stop();
try m_readCondition.notifyAll();
catch (Exception e) assert(false, e.msg);
return;
}
m_pongReceived = false;
Expand Down

0 comments on commit cc47328

Please sign in to comment.