Unverified Commit 9fe25b1c authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

Implement `ping-pong` for WebSocket server (#782)



* ws-server: Implement `ping-ping`
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* ws-server: Set builder's ping_interval
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* ws-server: Handle just `ping` frames
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* ws-server: Simplify `select`
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Use `futures_util::select` instead of `select!` macro
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* ws-server: Avoid pinning the delay
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* ws-server: Log when a `Pong` frame is received
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* ws-server: Use tokio for submitting pings
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent 47d36b9b
Pipeline #196169 passed with stages
in 4 minutes and 56 seconds