mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
improvement: define websocket send queue (unlimited->1024)
This commit is contained in:
parent
14fe9f9ee1
commit
d929ae2752
|
@ -79,6 +79,7 @@ async fn handle_web_request(
|
||||||
Ok(upgraded) => {
|
Ok(upgraded) => {
|
||||||
// set WebSocket configuration options
|
// set WebSocket configuration options
|
||||||
let config = WebSocketConfig {
|
let config = WebSocketConfig {
|
||||||
|
max_send_queue: Some(1024),
|
||||||
max_message_size: settings.limits.max_ws_message_bytes,
|
max_message_size: settings.limits.max_ws_message_bytes,
|
||||||
max_frame_size: settings.limits.max_ws_frame_bytes,
|
max_frame_size: settings.limits.max_ws_frame_bytes,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user