Skip to content

Commit

Permalink
Merge pull request zeromq#125 from msune/master
Browse files Browse the repository at this point in the history
Fix rvalue for socket::send() on EHOSTUNREACH
  • Loading branch information
bluca authored Jun 7, 2017
2 parents b544d86 + 5363388 commit fc990f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
}

Expand All @@ -641,6 +643,8 @@ namespace zmq
return true;
if (zmq_errno () == EAGAIN)
return false;
if (zmq_errno () == EHOSTUNREACH)
return false;
throw error_t ();
}

Expand Down

0 comments on commit fc990f1

Please sign in to comment.