File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ v1.x.x - 20xx-xx-xx
4
4
- Exceptions that occur in callbacks are no longer suppressed by default. They
5
5
can optionally be suppressed by setting `client.suppress_exceptions = True`.
6
6
Closes #365.
7
+ - Fix PUBREL remaining length of > 2 not being accepted for MQTT v5 message
8
+ flows. Closes #481.
7
9
8
10
v1.5.0 - 2019-10-30
9
11
===================
Original file line number Diff line number Diff line change @@ -3229,7 +3229,10 @@ def _handle_publish(self):
3229
3229
return MQTT_ERR_PROTOCOL
3230
3230
3231
3231
def _handle_pubrel (self ):
3232
- if self ._in_packet ['remaining_length' ] != 2 :
3232
+ if self ._protocol == MQTTv5 :
3233
+ if self ._in_packet ['remaining_length' ] < 2 :
3234
+ return MQTT_ERR_PROTOCOL
3235
+ elif self ._in_packet ['remaining_length' ] != 2 :
3233
3236
return MQTT_ERR_PROTOCOL
3234
3237
3235
3238
mid , = struct .unpack ("!H" , self ._in_packet ['packet' ])
You can’t perform that action at this time.
0 commit comments