Closed thewh1teagle closed 1 year ago
I think it's because there's no data which sent on the wire and warp doesn't use ping
to keep the connection.
How can I send ping to the clients?
Update: I added function which run in background and ping every client every 55 seconds, it solved the problem. You can see example here
Version
warp = { version = "0.3.6", features = ["tls"] }
cargo install cargo-tree
(see install here: https://github.com/sfackler/cargo-tree)Then:
Platform
Windowx x64
Description I made websocket server using warp and I connect it with
websocat
after few minutes the client disconnect from the server unexpectedlyI connect it using
and after few minutes it exit with:
You can see the short server implementation here: https://github.com/thewh1teagle/oref-rs/blob/main/oref-ws/src/main.rs#L103