mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Merge pull request #3996 from tarmo/xpub-unmatch
Problem: XPUB keeps matched pipes between failed non-blocking sends
This commit is contained in:
commit
7deb8ded43
15
RELICENSE/tarmo.md
Normal file
15
RELICENSE/tarmo.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Permission to Relicense under MPLv2 or any other OSI approved license chosen by the current ZeroMQ BDFL
|
||||||
|
|
||||||
|
This is a statement by Tarmo Tänav that grants permission to
|
||||||
|
relicense its copyrights in the libzmq C++ library (ZeroMQ) under the
|
||||||
|
Mozilla Public License v2 (MPLv2) or any other Open Source Initiative
|
||||||
|
approved license chosen by the current ZeroMQ BDFL (Benevolent
|
||||||
|
Dictator for Life).
|
||||||
|
|
||||||
|
A portion of the commits made by the Github handle "tarmo", with
|
||||||
|
commit author "Tarmo Tänav <tarmo@itech.ee>", are copyright of Tarmo Tänav.
|
||||||
|
This document hereby grants the libzmq project team to relicense libzmq,
|
||||||
|
including all past, present and future contributions of the author listed above.
|
||||||
|
|
||||||
|
Tarmo Tänav
|
||||||
|
2020/08/29
|
@ -299,6 +299,9 @@ int zmq::xpub_t::xsend (msg_t *msg_)
|
|||||||
|
|
||||||
// For the first part of multi-part message, find the matching pipes.
|
// For the first part of multi-part message, find the matching pipes.
|
||||||
if (!_more_send) {
|
if (!_more_send) {
|
||||||
|
// Ensure nothing from previous failed attempt to send is left matched
|
||||||
|
_dist.unmatch ();
|
||||||
|
|
||||||
if (unlikely (_manual && _last_pipe && _send_last_pipe)) {
|
if (unlikely (_manual && _last_pipe && _send_last_pipe)) {
|
||||||
_subscriptions.match (static_cast<unsigned char *> (msg_->data ()),
|
_subscriptions.match (static_cast<unsigned char *> (msg_->data ()),
|
||||||
msg_->size (), mark_last_pipe_as_matching,
|
msg_->size (), mark_last_pipe_as_matching,
|
||||||
|
Loading…
Reference in New Issue
Block a user