File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
25
26
26
### Fixed
27
27
- MQTT keep alive interval
28
+ - Change default network keep alive interval from ` Duration::ZERO ` to ` Duration::MAX ` .
28
29
- record client id for remote link's span
29
30
- session present flag in connack
30
31
- Make write method return the number of bytes written correctly everywhere
Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ impl<P: Protocol> Network<P> {
55
55
write : BytesMut :: with_capacity ( 10 * 1024 ) ,
56
56
max_incoming_size,
57
57
max_connection_buffer_len,
58
- keepalive : Duration :: ZERO ,
58
+ // Overwritten by keepalive value in connect packet, otherwise we
59
+ // would wait indefinitely until we get a packet / network error
60
+ // when we call read.
61
+ keepalive : Duration :: MAX ,
59
62
protocol,
60
63
}
61
64
}
You can’t perform that action at this time.
0 commit comments