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
9fb9fea6
Commit
9fb9fea6
authored
Sep 03, 2011
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error reporting in a minor way
Signed-off-by:
Martin Sustrik
<
sustrik@250bpm.com
>
parent
8b7ac4c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
tcp_connecter.cpp
src/tcp_connecter.cpp
+1
-1
xrep.cpp
src/xrep.cpp
+16
-15
No files found.
src/tcp_connecter.cpp
View file @
9fb9fea6
...
...
@@ -59,7 +59,7 @@ zmq::tcp_connecter_t::tcp_connecter_t (class io_thread_t *io_thread_,
// TODO: set_addess should be called separately, so that the error
// can be propagated.
int
rc
=
set_address
(
address_
);
zmq
_assert
(
rc
==
0
);
errno
_assert
(
rc
==
0
);
}
zmq
::
tcp_connecter_t
::~
tcp_connecter_t
()
...
...
src/xrep.cpp
View file @
9fb9fea6
...
...
@@ -130,22 +130,23 @@ int zmq::xrep_t::xsend (msg_t *msg_, int flags_)
// Find the pipe associated with the peer ID stored in the prefix.
// If there's no such pipe just silently ignore the message.
zmq_assert
(
msg_
->
size
()
==
4
);
uint32_t
peer_id
=
get_uint32
((
unsigned
char
*
)
msg_
->
data
());
outpipes_t
::
iterator
it
=
outpipes
.
find
(
peer_id
);
if
(
it
!=
outpipes
.
end
())
{
current_out
=
it
->
second
.
pipe
;
msg_t
empty
;
int
rc
=
empty
.
init
();
errno_assert
(
rc
==
0
);
if
(
!
current_out
->
check_write
(
&
empty
))
{
it
->
second
.
active
=
false
;
more_out
=
false
;
current_out
=
NULL
;
if
(
msg_
->
size
()
==
4
)
{
uint32_t
peer_id
=
get_uint32
((
unsigned
char
*
)
msg_
->
data
());
outpipes_t
::
iterator
it
=
outpipes
.
find
(
peer_id
);
if
(
it
!=
outpipes
.
end
())
{
current_out
=
it
->
second
.
pipe
;
msg_t
empty
;
int
rc
=
empty
.
init
();
errno_assert
(
rc
==
0
);
if
(
!
current_out
->
check_write
(
&
empty
))
{
it
->
second
.
active
=
false
;
more_out
=
false
;
current_out
=
NULL
;
}
rc
=
empty
.
close
();
errno_assert
(
rc
==
0
);
}
rc
=
empty
.
close
();
errno_assert
(
rc
==
0
);
}
}
...
...
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