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
103cbee6
Commit
103cbee6
authored
Sep 04, 2009
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
couple of bugs fixed
parent
4914e5c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
Makefile.am
src/Makefile.am
+5
-1
tcp_socket.cpp
src/tcp_socket.cpp
+1
-1
zmq_connecter_init.cpp
src/zmq_connecter_init.cpp
+0
-1
zmq_engine.cpp
src/zmq_engine.cpp
+2
-5
zmq_listener_init.cpp
src/zmq_listener_init.cpp
+2
-1
No files found.
src/Makefile.am
View file @
103cbee6
lib_LTLIBRARIES
=
libzmq.la
pkginclude_HEADERS
=
\
../include/zmq.h
\
../include/zmq.hpp
libzmq_la_SOURCES
=
\
app_thread.hpp
\
atomic_bitmap.hpp
\
...
...
@@ -29,7 +33,7 @@ libzmq_la_SOURCES = \
mutex.hpp
\
object.hpp
\
options.hpp
\
owne
r
.hpp
\
owne
d
.hpp
\
pipe.hpp
\
platform.hpp
\
poll.hpp
\
...
...
src/tcp_socket.cpp
View file @
103cbee6
...
...
@@ -81,7 +81,7 @@ int zmq::tcp_socket_t::write (const void *data, int size)
return
0
;
// Signalise peer failure.
if
(
nbytes
==
-
1
&&
errno
==
ECONNRESET
)
if
(
nbytes
==
-
1
&&
(
errno
==
ECONNRESET
||
errno
==
EPIPE
)
)
return
-
1
;
errno_assert
(
nbytes
!=
-
1
);
...
...
src/zmq_connecter_init.cpp
View file @
103cbee6
...
...
@@ -77,7 +77,6 @@ bool zmq::zmq_connecter_init_t::write (::zmq_msg_t *msg_)
void
zmq
::
zmq_connecter_init_t
::
flush
()
{
// We are not expecting any messages. No point in flushing.
zmq_assert
(
false
);
}
void
zmq
::
zmq_connecter_init_t
::
detach
()
...
...
src/zmq_engine.cpp
View file @
103cbee6
...
...
@@ -97,11 +97,8 @@ void zmq::zmq_engine_t::in_event ()
if
(
inpos
<
insize
)
reset_pollin
(
handle
);
// If at least one byte was processed, flush all messages the decoder
// may have produced.
if
(
nbytes
>
0
)
inout
->
flush
();
// Flush all messages the decoder may have produced.
inout
->
flush
();
}
void
zmq
::
zmq_engine_t
::
out_event
()
...
...
src/zmq_listener_init.cpp
View file @
103cbee6
...
...
@@ -62,7 +62,8 @@ bool zmq::zmq_listener_init_t::write (::zmq_msg_t *msg_)
void
zmq
::
zmq_listener_init_t
::
flush
()
{
zmq_assert
(
has_peer_identity
);
if
(
!
has_peer_identity
)
return
;
// Initialisation is done. Disconnect the engine from the init object.
engine
->
unplug
();
...
...
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