Commit eac94fb8 authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[5336] Fix EAGAIN/EWOULDBLOCK handling in UnixDomainSocket

parent c885228d
...@@ -213,8 +213,10 @@ UnixDomainSocketImpl::sendHandler(const UnixDomainSocket::Handler& remote_handle ...@@ -213,8 +213,10 @@ UnixDomainSocketImpl::sendHandler(const UnixDomainSocket::Handler& remote_handle
if ((ec.value() == boost::asio::error::would_block) || if ((ec.value() == boost::asio::error::would_block) ||
(ec.value() == boost::asio::error::try_again)) { (ec.value() == boost::asio::error::try_again)) {
doSend(buffer, remote_handler); doSend(buffer, remote_handler);
} else {
remote_handler(ec, length);
} }
remote_handler(ec, length);
} }
void void
...@@ -246,8 +248,10 @@ UnixDomainSocketImpl::receiveHandler(const UnixDomainSocket::Handler& remote_han ...@@ -246,8 +248,10 @@ UnixDomainSocketImpl::receiveHandler(const UnixDomainSocket::Handler& remote_han
if ((ec.value() == boost::asio::error::would_block) || if ((ec.value() == boost::asio::error::would_block) ||
(ec.value() == boost::asio::error::try_again)) { (ec.value() == boost::asio::error::try_again)) {
doReceive(buffer, remote_handler); doReceive(buffer, remote_handler);
} else {
remote_handler(ec, length);
} }
remote_handler(ec, length);
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment