diff --git a/zmq.hpp b/zmq.hpp index c72708b..7f8ff6b 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -631,6 +631,8 @@ namespace zmq return (size_t) nbytes; if (zmq_errno () == EAGAIN) return 0; + if (zmq_errno () == EHOSTUNREACH) + return 0; throw error_t (); } @@ -641,6 +643,8 @@ namespace zmq return true; if (zmq_errno () == EAGAIN) return false; + if (zmq_errno () == EHOSTUNREACH) + return false; throw error_t (); }