mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
ws: upgrade tungstenite
This commit is contained in:
parent
1667339ee5
commit
c2f7b6ed92
6 changed files with 13 additions and 10 deletions
|
|
@ -464,7 +464,8 @@ async fn run_stream_agnostic_connection<
|
|||
let ws_config = tungstenite::protocol::WebSocketConfig {
|
||||
max_frame_size: Some(config.network.websocket_max_frame_size),
|
||||
max_message_size: Some(config.network.websocket_max_message_size),
|
||||
max_send_queue: Some(2),
|
||||
write_buffer_size: config.network.websocket_write_buffer_size,
|
||||
max_write_buffer_size: config.network.websocket_write_buffer_size * 3,
|
||||
..Default::default()
|
||||
};
|
||||
let stream = async_tungstenite::accept_async_with_config(stream, Some(ws_config)).await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue