Skip to content

Commit

Permalink
use max frame size and message size for web socket connections
Browse files Browse the repository at this point in the history
Resolves rust-headless-chrome#436

This was added in rust-headless-chrome#386, but somehow it gets replaced with default value again.

Signed-off-by: Hollow Man <hollowman@opensuse.org>
  • Loading branch information
HollowMan6 authored and pull[bot] committed Dec 1, 2023
1 parent 89dee5b commit 891606c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/browser/transport/web_socket_connection.rs
Expand Up @@ -134,7 +134,12 @@ impl WebSocketConnection {
)> {
let mut client = tungstenite::client::connect_with_config(
ws_url,
Some(WebSocketConfig::default()),
Some(WebSocketConfig {
max_message_size: None,
max_frame_size: None,
accept_unmasked_frames: true,
..Default::default()
}),
u8::MAX - 1,
)?;

Expand Down

0 comments on commit 891606c

Please sign in to comment.