mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 18:42:43 +01:00
NULL: Implement ERROR handling
NULL mechanism sends ERROR command rather than READY command when ZAP handler rejects the ZAP request (status code != "200"). The body of ERROR command contains the status code as returned by ZAP handler.
This commit is contained in:
@@ -712,9 +712,6 @@ void zmq::stream_engine_t::zap_msg_available ()
|
||||
|
||||
const int rc = mechanism->zap_msg_available ();
|
||||
if (rc == -1) {
|
||||
// TODO:
|
||||
// if (errno == EACCES)
|
||||
// return ERROR command to client
|
||||
error ();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user