Merge pull request #125 from msune/master

Fix rvalue for socket::send() on EHOSTUNREACH
This commit is contained in:
Luca Boccassi 2017-06-07 11:18:49 +01:00 committed by GitHub
commit fc990f1419

View File

@ -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 ();
}