diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-06-07 16:47:35 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-06-07 16:47:35 +0100 |
commit | f28ba49bdaa3b5536f250c06830a160e5588af61 (patch) | |
tree | 6a62fb386314c05c980b5452f672e7fb81d786c8 /src | |
parent | 8fe78ad9f932513f27b6f97a705cdfc1ef6a16b9 (diff) | |
download | mqttt-f28ba49bdaa3b5536f250c06830a160e5588af61.tar.gz mqttt-f28ba49bdaa3b5536f250c06830a160e5588af61.tar.xz mqttt-f28ba49bdaa3b5536f250c06830a160e5588af61.zip |
max packet size
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 9000f01..655ef48 100644 --- a/src/config.rs +++ b/src/config.rs @@ -55,6 +55,7 @@ impl Config { options.set_credentials(&credentials.username, &credentials.password); } options.set_keep_alive(Duration::from_secs(5)); + options.set_max_packet_size(10 * 1024 * 1024, 10 * 1024 * 1024); Client::new(options, 10) } } |