Skip to content

Commit b8872ca

Browse files
authored
Merge pull request #543 from redboltz/bp_540_to_v6.x
Fixed #540.
2 parents 937279c + 66e4b5b commit b8872ca

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 6.0.7
2+
* Fixed packet_id leak on QoS2 publish. (backported) (#541, #542, #543)
3+
14
## 6.0.6
25
* Fixed server side endpoint lifetime management problem. (#439, #440)
36

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MQTT client/server for C++14 based on Boost.Asio
22

3-
Version 6.0.6 [![Build Status](https://travis-ci.org/redboltz/mqtt_cpp.svg?branch=master)](https://travis-ci.org/redboltz/mqtt_cpp)[![Build Status](https://dev.azure.com/redboltz/redboltz/_apis/build/status/redboltz.mqtt_cpp?branchName=master)](https://dev.azure.com/redboltz/redboltz/_build/latest?definitionId=6&branchName=master)[![codecov](https://codecov.io/gh/redboltz/mqtt_cpp/branch/master/graph/badge.svg)](https://codecov.io/gh/redboltz/mqtt_cpp)
3+
Version 6.0.7 [![Build Status](https://travis-ci.org/redboltz/mqtt_cpp.svg?branch=master)](https://travis-ci.org/redboltz/mqtt_cpp)[![Build Status](https://dev.azure.com/redboltz/redboltz/_apis/build/status/redboltz.mqtt_cpp?branchName=master)](https://dev.azure.com/redboltz/redboltz/_build/latest?definitionId=6&branchName=master)[![codecov](https://codecov.io/gh/redboltz/mqtt_cpp/branch/master/graph/badge.svg)](https://codecov.io/gh/redboltz/mqtt_cpp)
44

55
Important note https://github.com/redboltz/mqtt_cpp/wiki/News.
66

include/mqtt/endpoint.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -13203,8 +13203,7 @@ class endpoint : public std::enable_shared_from_this<endpoint<Mutex, LockGuard,
1320313203
auto& idx = store_.template get<tag_packet_id_type>();
1320413204
auto r = idx.equal_range(std::make_tuple(info.packet_id, control_packet_type::pubcomp));
1320513205
idx.erase(std::get<0>(r), std::get<1>(r));
13206-
// packet_id shouldn't be erased here.
13207-
// It is reused for pubrel/pubcomp.
13206+
packet_id_.erase(info.packet_id);
1320813207
}
1320913208
if (h_serialize_remove_) h_serialize_remove_(info.packet_id);
1321013209
switch (version_) {

0 commit comments

Comments
 (0)