From 1f536b2d3820ba5435086a77ad34d86a432b94c7 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 17 Feb 2011 14:20:19 +0100 Subject: 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 --- src/zmq_listener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3