Commit 73bdf354 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2903] added more detailed explanation of when post() can throw

parent 4933a1c6
......@@ -288,7 +288,11 @@ void TCPServer::stop() {
void
TCPServer::resume(const bool done) {
done_ = done;
io_.post(*this); // this can throw, but can be considered fatal.
// post() can throw due to memory allocation failure, but as like other
// cases of the entire BIND 10 implementation, we consider it fatal and
// let the exception be propagated.
io_.post(*this);
}
} // namespace asiodns
......
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