-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
ping-pong
for WebSocket server (#782)
* ws-server: Implement `ping-ping` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Set builder's ping_interval Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Handle just `ping` frames Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Simplify `select` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Use `futures_util::select` instead of `select!` macro Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Avoid pinning the delay Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Log when a `Pong` frame is received Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Use tokio for submitting pings Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
- Loading branch information
Showing
1 changed file
with
76 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters