summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-02-17 14:20:19 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-02-17 14:20:19 +0100
commit1f536b2d3820ba5435086a77ad34d86a432b94c7 (patch)
tree16e38b22cdd66d6b8ea11897ef8637e5c99da852 /src
parent28f3e87fc6c8c5c7046234bf9a08ae62f26d7f3a (diff)
Init object is child of listener
This means that all the handshaking while accepting incoming connection is done exclusively in I/O threads, thus it won't overload the application thread's mailbox. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r--src/zmq_listener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq_listener.cpp b/src/zmq_listener.cpp
index 522ab3f..2a7f1eb 100644
--- a/src/zmq_listener.cpp
+++ b/src/zmq_listener.cpp
@@ -72,6 +72,6 @@ void zmq::zmq_listener_t::in_event ()
zmq_init_t *init = new (std::nothrow) zmq_init_t (io_thread, socket,
NULL, fd, options);
zmq_assert (init);
- launch_sibling (init);
+ launch_child (init);
}