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
c635ee7e
Commit
c635ee7e
authored
Apr 10, 2017
by
bjovke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Critical BUG introduced with #2518 fixed.
parent
2df4e878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
socket_poller.cpp
src/socket_poller.cpp
+3
-3
No files found.
src/socket_poller.cpp
View file @
c635ee7e
...
...
@@ -599,9 +599,9 @@ int zmq::socket_poller_t::wait (zmq::socket_poller_t::event_t *events_, int n_ev
// SOCKETS are continuous from the beginning of fd_array in fd_set.
// We just need to copy fd_count elements of fd_array.
// We gain huge memcpy() improvement if number of used SOCKETs is much lower than FD_SETSIZE.
memcpy
(
&
inset
,
&
pollset_in
,
sizeof
(
pollset_in
.
fd_count
)
+
sizeof
(
*
(
pollset_in
.
fd_array
))
*
pollset_in
.
fd_count
);
memcpy
(
&
outset
,
&
pollset_out
,
sizeof
(
pollset_out
.
fd_count
)
+
sizeof
(
*
(
pollset_out
.
fd_array
))
*
pollset_out
.
fd_coun
t
);
memcpy
(
&
errset
,
&
pollset_err
,
sizeof
(
pollset_err
.
fd_count
)
+
sizeof
(
*
(
pollset_err
.
fd_array
))
*
pollset_err
.
fd_count
);
memcpy
(
&
inset
,
&
pollset_in
,
(
char
*
)
(
pollset_in
.
fd_array
+
pollset_in
.
fd_count
)
-
(
char
*
)
&
pollset_in
);
memcpy
(
&
outset
,
&
pollset_out
,
(
char
*
)
(
pollset_out
.
fd_array
+
pollset_out
.
fd_count
)
-
(
char
*
)
&
pollset_ou
t
);
memcpy
(
&
errset
,
&
pollset_err
,
(
char
*
)
(
pollset_err
.
fd_array
+
pollset_err
.
fd_count
)
-
(
char
*
)
&
pollset_err
);
int
rc
=
select
(
0
,
&
inset
,
&
outset
,
&
errset
,
ptimeout
);
if
(
unlikely
(
rc
==
SOCKET_ERROR
))
{
errno
=
zmq
::
wsa_error_to_errno
(
WSAGetLastError
());
...
...
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