Commit dde69fb9 authored by Ian Barber's avatar Ian Barber

Revert "Merge branch 'master' of github.com:zeromq/libzmq"

This reverts commit 7b105865, reversing
changes made to 33459029.
parent 6117a2b0
...@@ -59,9 +59,13 @@ zmq::ipc_connecter_t::ipc_connecter_t (class io_thread_t *io_thread_, ...@@ -59,9 +59,13 @@ zmq::ipc_connecter_t::ipc_connecter_t (class io_thread_t *io_thread_,
zmq::ipc_connecter_t::~ipc_connecter_t () zmq::ipc_connecter_t::~ipc_connecter_t ()
{ {
zmq_assert (!wait); if (wait)
zmq_assert (!handle_valid); cancel_timer (reconnect_timer_id);
zmq_assert (s == retired_fd); if (handle_valid)
rm_fd (handle);
if (s != retired_fd)
close ();
} }
void zmq::ipc_connecter_t::process_plug () void zmq::ipc_connecter_t::process_plug ()
...@@ -72,24 +76,6 @@ void zmq::ipc_connecter_t::process_plug () ...@@ -72,24 +76,6 @@ void zmq::ipc_connecter_t::process_plug ()
start_connecting (); start_connecting ();
} }
void zmq::ipc_connecter_t::process_term (int linger_)
{
if (wait) {
cancel_timer (reconnect_timer_id);
wait = false;
}
if (handle_valid) {
rm_fd (handle);
handle_valid = false;
}
if (s != retired_fd)
close ();
own_t::process_term (linger_);
}
void zmq::ipc_connecter_t::in_event () void zmq::ipc_connecter_t::in_event ()
{ {
// We are not polling for incomming data, so we are actually called // We are not polling for incomming data, so we are actually called
......
...@@ -55,7 +55,6 @@ namespace zmq ...@@ -55,7 +55,6 @@ namespace zmq
// Handlers for incoming commands. // Handlers for incoming commands.
void process_plug (); void process_plug ();
void process_term (int linger_);
// Handlers for I/O events. // Handlers for I/O events.
void in_event (); void in_event ();
......
...@@ -52,7 +52,8 @@ zmq::ipc_listener_t::ipc_listener_t (io_thread_t *io_thread_, ...@@ -52,7 +52,8 @@ zmq::ipc_listener_t::ipc_listener_t (io_thread_t *io_thread_,
zmq::ipc_listener_t::~ipc_listener_t () zmq::ipc_listener_t::~ipc_listener_t ()
{ {
zmq_assert (s == retired_fd); if (s != retired_fd)
close ();
} }
void zmq::ipc_listener_t::process_plug () void zmq::ipc_listener_t::process_plug ()
......
...@@ -69,9 +69,13 @@ zmq::tcp_connecter_t::tcp_connecter_t (class io_thread_t *io_thread_, ...@@ -69,9 +69,13 @@ zmq::tcp_connecter_t::tcp_connecter_t (class io_thread_t *io_thread_,
zmq::tcp_connecter_t::~tcp_connecter_t () zmq::tcp_connecter_t::~tcp_connecter_t ()
{ {
zmq_assert (!wait); if (wait)
zmq_assert (!handle_valid); cancel_timer (reconnect_timer_id);
zmq_assert (s == retired_fd); if (handle_valid)
rm_fd (handle);
if (s != retired_fd)
close ();
} }
void zmq::tcp_connecter_t::process_plug () void zmq::tcp_connecter_t::process_plug ()
...@@ -82,24 +86,6 @@ void zmq::tcp_connecter_t::process_plug () ...@@ -82,24 +86,6 @@ void zmq::tcp_connecter_t::process_plug ()
start_connecting (); start_connecting ();
} }
void zmq::tcp_connecter_t::process_term (int linger_)
{
if (wait) {
cancel_timer (reconnect_timer_id);
wait = false;
}
if (handle_valid) {
rm_fd (handle);
handle_valid = false;
}
if (s != retired_fd)
close ();
own_t::process_term (linger_);
}
void zmq::tcp_connecter_t::in_event () void zmq::tcp_connecter_t::in_event ()
{ {
// We are not polling for incomming data, so we are actually called // We are not polling for incomming data, so we are actually called
......
...@@ -53,7 +53,6 @@ namespace zmq ...@@ -53,7 +53,6 @@ namespace zmq
// Handlers for incoming commands. // Handlers for incoming commands.
void process_plug (); void process_plug ();
void process_term (int linger_);
// Handlers for I/O events. // Handlers for I/O events.
void in_event (); void in_event ();
......
...@@ -61,7 +61,8 @@ zmq::tcp_listener_t::tcp_listener_t (io_thread_t *io_thread_, ...@@ -61,7 +61,8 @@ zmq::tcp_listener_t::tcp_listener_t (io_thread_t *io_thread_,
zmq::tcp_listener_t::~tcp_listener_t () zmq::tcp_listener_t::~tcp_listener_t ()
{ {
zmq_assert (s == retired_fd); if (s != retired_fd)
close ();
} }
void zmq::tcp_listener_t::process_plug () void zmq::tcp_listener_t::process_plug ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment