Add WebSocket ping/pong keep-alive mechanism

Implements RFC 6455 compliant ping/pong health checking to detect dead connections:
- Send ping frames every 10 seconds
- Monitor pong responses with 5-second timeout after each ping
This commit is contained in:
Alexandr Stelnykovych
2025-11-21 12:28:57 +02:00
parent 0b20a368f9
commit 76214bd986
3 changed files with 43 additions and 0 deletions

View File

@@ -3817,6 +3817,7 @@ name = "portmaster"
version = "2.0.25"
dependencies = [
"assert_matches",
"bytes",
"cached",
"chrono",
"clap_lex",