Skip to content
GitLab
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
eedd7668
Commit
eedd7668
authored
Sep 05, 2012
by
Jelte Jansen
Browse files
[master] fix for bsd/osx timeout error
Check if socket has not been closed after timeout in read discussed on jabber
parent
34955bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/asiodns/tcp_server.cc
View file @
eedd7668
...
...
@@ -161,6 +161,13 @@ TCPServer::operator()(asio::error_code ec, size_t length) {
CORO_YIELD
return
;
}
// Due to possible timeouts and other bad behaviour, after the
// timely reads are done, there is a chance the socket has
// been closed already. So before we move on to the actual
// processing, check that, and stop if so.
if
(
!
socket_
->
is_open
())
{
CORO_YIELD
return
;
}
// Create an \c IOMessage object to store the query.
//
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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