mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic_ws: add settings for max ws message sizes, set low defaults
This commit is contained in:
parent
0f6d6d4b21
commit
a30335730b
3 changed files with 27 additions and 3 deletions
|
|
@ -33,6 +33,8 @@ pub struct NetworkConfig {
|
|||
pub peer_announce_interval: usize, // FIXME: should this really be in NetworkConfig?
|
||||
pub poll_event_capacity: usize,
|
||||
pub poll_timeout_milliseconds: u64,
|
||||
pub websocket_max_message_size: usize,
|
||||
pub websocket_max_frame_size: usize,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -96,6 +98,8 @@ impl Default for NetworkConfig {
|
|||
peer_announce_interval: 120,
|
||||
poll_event_capacity: 4096,
|
||||
poll_timeout_milliseconds: 50,
|
||||
websocket_max_message_size: 64 * 1024,
|
||||
websocket_max_frame_size: 16 * 1024,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue