mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-04 10:25:27 +02:00
Merge pull request #125 from msune/master
Fix rvalue for socket::send() on EHOSTUNREACH
This commit is contained in:
commit
fc990f1419
4
zmq.hpp
4
zmq.hpp
@ -631,6 +631,8 @@ namespace zmq
|
|||||||
return (size_t) nbytes;
|
return (size_t) nbytes;
|
||||||
if (zmq_errno () == EAGAIN)
|
if (zmq_errno () == EAGAIN)
|
||||||
return 0;
|
return 0;
|
||||||
|
if (zmq_errno () == EHOSTUNREACH)
|
||||||
|
return 0;
|
||||||
throw error_t ();
|
throw error_t ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -641,6 +643,8 @@ namespace zmq
|
|||||||
return true;
|
return true;
|
||||||
if (zmq_errno () == EAGAIN)
|
if (zmq_errno () == EAGAIN)
|
||||||
return false;
|
return false;
|
||||||
|
if (zmq_errno () == EHOSTUNREACH)
|
||||||
|
return false;
|
||||||
throw error_t ();
|
throw error_t ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user