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
f448af94
Commit
f448af94
authored
Nov 10, 2014
by
Constantin Rack
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1255 from klaussfreire/master
Fix busy-polling when reaching the rate limit
parents
fca34e5e
6a227b2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
pgm_sender.cpp
src/pgm_sender.cpp
+5
-0
No files found.
src/pgm_sender.cpp
View file @
f448af94
...
...
@@ -197,6 +197,7 @@ void zmq::pgm_sender_t::out_event ()
if
(
has_tx_timer
)
{
cancel_timer
(
tx_timer_id
);
set_pollout
(
handle
);
has_tx_timer
=
false
;
}
...
...
@@ -210,8 +211,10 @@ void zmq::pgm_sender_t::out_event ()
zmq_assert
(
nbytes
==
0
);
if
(
errno
==
ENOMEM
)
{
// Stop polling handle and wait for tx timeout
const
long
timeout
=
pgm_socket
.
get_tx_timeout
();
add_timer
(
timeout
,
tx_timer_id
);
reset_pollout
(
handle
);
has_tx_timer
=
true
;
}
else
...
...
@@ -228,7 +231,9 @@ void zmq::pgm_sender_t::timer_event (int token)
}
else
if
(
token
==
tx_timer_id
)
{
// Restart polling handle and retry sending
has_tx_timer
=
false
;
set_pollout
(
handle
);
out_event
();
}
else
...
...
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