Commit f6fe600e authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #414 from ianbarber/master

Fix build breaking typos in monitor VA code
parents 4a43a0d0 fd67cd81
...@@ -13,7 +13,7 @@ SYNOPSIS ...@@ -13,7 +13,7 @@ SYNOPSIS
*int zmq_setsockopt (void '*socket', int 'option_name', const void '*option_value', size_t 'option_len');* *int zmq_setsockopt (void '*socket', int 'option_name', const void '*option_value', size_t 'option_len');*
Caution: All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE, Caution: All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE,
ZMQ_LINGER and ZMQ_FAIL_UNROUTABLE only take effect for subsequent socket ZMQ_LINGER and ZMQ_ROUTER_BEHAVIOR only take effect for subsequent socket
bind/connects. bind/connects.
DESCRIPTION DESCRIPTION
...@@ -374,6 +374,10 @@ of `0` is the default when the message is silently discarded, while a value of ` ...@@ -374,6 +374,10 @@ of `0` is the default when the message is silently discarded, while a value of `
forces the sending to fail with an 'EAGAIN' error code, effectively enabling sending forces the sending to fail with an 'EAGAIN' error code, effectively enabling sending
messages in a blocking fashion. messages in a blocking fashion.
Note: Setting this socket option may have unpredictable effects on reactor-type
libraries that assume EAGAIN will only be sent in HWM-type situations.
[horizontal] [horizontal]
Option value type:: int Option value type:: int
Option value unit:: 0, 1 Option value unit:: 0, 1
......
...@@ -356,7 +356,7 @@ zmq::endpoint_t zmq::ctx_t::find_endpoint (const char *addr_) ...@@ -356,7 +356,7 @@ zmq::endpoint_t zmq::ctx_t::find_endpoint (const char *addr_)
void zmq::ctx_t::monitor_event (zmq::socket_base_t *socket_, int event_, ...) void zmq::ctx_t::monitor_event (zmq::socket_base_t *socket_, int event_, ...)
{ {
va_list args; va_list args;
va_start (event_, args); va_start (args, event_);
va_monitor_event (socket_, event_, args); va_monitor_event (socket_, event_, args);
va_end (args); va_end (args);
} }
......
...@@ -189,10 +189,6 @@ void zmq::pipe_t::rollback () ...@@ -189,10 +189,6 @@ void zmq::pipe_t::rollback ()
void zmq::pipe_t::flush () void zmq::pipe_t::flush ()
{ {
// If terminate() was already called do nothing.
if (state == terminated || state == double_terminated)
return;
// The peer does not exist anymore at this point. // The peer does not exist anymore at this point.
if (state == terminating) if (state == terminating)
return; return;
......
...@@ -1001,11 +1001,11 @@ void zmq::socket_base_t::monitor_event (int event_, ...) ...@@ -1001,11 +1001,11 @@ void zmq::socket_base_t::monitor_event (int event_, ...)
{ {
va_list args; va_list args;
va_start (args, event_); va_start (args, event_);
va_monitor_event(event, args); va_monitor_event(event_, args);
va_end (args); va_end (args);
} }
void zmq::socket_base_t::monitor_event (int event_, va_list args) void zmq::socket_base_t::va_monitor_event (int event_, va_list args)
{ {
get_ctx ()->va_monitor_event (this, event_, args); get_ctx ()->va_monitor_event (this, event_, args);
} }
...@@ -223,7 +223,7 @@ int zmq::tcp_listener_t::set_address (const char *addr_) ...@@ -223,7 +223,7 @@ int zmq::tcp_listener_t::set_address (const char *addr_)
goto error; goto error;
#endif #endif
socket->monitor_event (ZMQ_EVENT_LISTENING, addr_, s); socket->monitor_event (ZMQ_EVENT_LISTENING, endpoint.c_str(), s);
return 0; return 0;
error: error:
......
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