Skip to content

Commit

Permalink
Merge pull request #50 from Alexibu/Ping-fail-close-and-stop-readers
Browse files Browse the repository at this point in the history
Add notification to readers when ping fails
  • Loading branch information
s-ludwig authored Dec 13, 2024
2 parents 338ecb4 + cc47328 commit 8cf9b23
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 8cf9b23

Please sign in to comment.