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
e89a5f1e
Commit
e89a5f1e
authored
Feb 02, 2012
by
Chuck Remes
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #230 from chuckremes/master
mato: merge patch to close libzmq-205
parents
edf7db74
c54ad48c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
pgm_receiver.cpp
src/pgm_receiver.cpp
+11
-2
No files found.
src/pgm_receiver.cpp
View file @
e89a5f1e
...
...
@@ -117,8 +117,15 @@ void zmq::pgm_receiver_t::activate_in ()
// processed the whole buffer but failed to write
// the last message into the pipe.
if
(
pending_bytes
==
0
)
{
if
(
mru_decoder
!=
NULL
)
if
(
mru_decoder
!=
NULL
)
{
mru_decoder
->
process_buffer
(
NULL
,
0
);
session
->
flush
();
}
// Resume polling.
set_pollin
(
pipe_handle
);
set_pollin
(
socket_handle
);
return
;
}
...
...
@@ -128,6 +135,7 @@ void zmq::pgm_receiver_t::activate_in ()
// Ask the decoder to process remaining data.
size_t
n
=
mru_decoder
->
process_buffer
(
pending_ptr
,
pending_bytes
);
pending_bytes
-=
n
;
session
->
flush
();
if
(
pending_bytes
>
0
)
return
;
...
...
@@ -145,7 +153,8 @@ void zmq::pgm_receiver_t::in_event ()
unsigned
char
*
data
=
NULL
;
const
pgm_tsi_t
*
tsi
=
NULL
;
zmq_assert
(
pending_bytes
==
0
);
if
(
pending_bytes
>
0
)
return
;
if
(
has_rx_timer
)
{
cancel_timer
(
rx_timer_id
);
...
...
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