aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-06-07 16:47:35 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-06-07 16:47:35 +0100
commitf28ba49bdaa3b5536f250c06830a160e5588af61 (patch)
tree6a62fb386314c05c980b5452f672e7fb81d786c8 /src/config.rs
parent8fe78ad9f932513f27b6f97a705cdfc1ef6a16b9 (diff)
downloadmqttt-f28ba49bdaa3b5536f250c06830a160e5588af61.tar.gz
mqttt-f28ba49bdaa3b5536f250c06830a160e5588af61.tar.xz
mqttt-f28ba49bdaa3b5536f250c06830a160e5588af61.zip
max packet size
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs1
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)
}
}