fix pong read

This commit is contained in:
Toshit Chawda 2024-09-23 17:42:00 -07:00
parent 09b15e3c43
commit 2dfcb0021f
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 5 additions and 0 deletions

View file

@ -111,6 +111,7 @@ pub async fn route(
ws_upgrade(req, |fut, wsproxy, udp, path| async move {
let mut ws = fut.await.context("failed to await upgrade future")?;
ws.set_max_message_size(CONFIG.server.max_message_size);
ws.set_auto_pong(false);
if wsproxy {
let ws = WebSocketStreamWrapper(FragmentCollector::new(ws));