Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
eac94fb8
Commit
eac94fb8
authored
Aug 15, 2017
by
Thomas Markwalder
Browse files
[5336] Fix EAGAIN/EWOULDBLOCK handling in UnixDomainSocket
parent
c885228d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/asiolink/unix_domain_socket.cc
View file @
eac94fb8
...
...
@@ -213,8 +213,10 @@ UnixDomainSocketImpl::sendHandler(const UnixDomainSocket::Handler& remote_handle
if
((
ec
.
value
()
==
boost
::
asio
::
error
::
would_block
)
||
(
ec
.
value
()
==
boost
::
asio
::
error
::
try_again
))
{
doSend
(
buffer
,
remote_handler
);
}
else
{
remote_handler
(
ec
,
length
);
}
remote_handler
(
ec
,
length
);
}
void
...
...
@@ -246,8 +248,10 @@ UnixDomainSocketImpl::receiveHandler(const UnixDomainSocket::Handler& remote_han
if
((
ec
.
value
()
==
boost
::
asio
::
error
::
would_block
)
||
(
ec
.
value
()
==
boost
::
asio
::
error
::
try_again
))
{
doReceive
(
buffer
,
remote_handler
);
}
else
{
remote_handler
(
ec
,
length
);
}
remote_handler
(
ec
,
length
);
}
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment