Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
dc50bf5d
Commit
dc50bf5d
authored
Feb 03, 2012
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #233 from danielnorberg/master
LIBZMQ-300: free received subscription messages
parents
4f4d72af
79f753bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
xpub.cpp
src/xpub.cpp
+3
-4
No files found.
src/xpub.cpp
View file @
dc50bf5d
...
...
@@ -56,14 +56,11 @@ void zmq::xpub_t::xread_activated (pipe_t *pipe_)
{
// There are some subscriptions waiting. Let's process them.
msg_t
sub
;
sub
.
init
();
while
(
true
)
{
// Grab next subscription.
if
(
!
pipe_
->
read
(
&
sub
))
{
sub
.
close
();
if
(
!
pipe_
->
read
(
&
sub
))
return
;
}
// Apply the subscription to the trie.
unsigned
char
*
data
=
(
unsigned
char
*
)
sub
.
data
();
...
...
@@ -81,6 +78,8 @@ void zmq::xpub_t::xread_activated (pipe_t *pipe_)
pending
.
push_back
(
blob_t
((
unsigned
char
*
)
sub
.
data
(),
sub
.
size
()));
}
sub
.
close
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment