mirror of https://github.com/Icinga/icinga2.git
{HttpServer,JsonRpc}Connection#Disconnect(): cancel I/O ops ASAP
refs #7431
This commit is contained in:
parent
b3c48e7520
commit
dfaeb88ac3
|
@ -88,13 +88,13 @@ void HttpServerConnection::Disconnect()
|
|||
*/
|
||||
boost::system::error_code ec;
|
||||
|
||||
m_Stream->next_layer().async_shutdown(yc[ec]);
|
||||
|
||||
m_Stream->lowest_layer().shutdown(m_Stream->lowest_layer().shutdown_both, ec);
|
||||
m_CheckLivenessTimer.cancel();
|
||||
|
||||
m_Stream->lowest_layer().cancel(ec);
|
||||
|
||||
m_CheckLivenessTimer.cancel();
|
||||
m_Stream->next_layer().async_shutdown(yc[ec]);
|
||||
|
||||
m_Stream->lowest_layer().shutdown(m_Stream->lowest_layer().shutdown_both, ec);
|
||||
|
||||
auto listener (ApiListener::GetInstance());
|
||||
|
||||
|
|
|
@ -224,14 +224,14 @@ void JsonRpcConnection::Disconnect()
|
|||
*/
|
||||
boost::system::error_code ec;
|
||||
|
||||
m_Stream->next_layer().async_shutdown(yc[ec]);
|
||||
|
||||
m_Stream->lowest_layer().shutdown(m_Stream->lowest_layer().shutdown_both, ec);
|
||||
m_CheckLivenessTimer.cancel();
|
||||
m_HeartbeatTimer.cancel();
|
||||
|
||||
m_Stream->lowest_layer().cancel(ec);
|
||||
|
||||
m_CheckLivenessTimer.cancel();
|
||||
m_HeartbeatTimer.cancel();
|
||||
m_Stream->next_layer().async_shutdown(yc[ec]);
|
||||
|
||||
m_Stream->lowest_layer().shutdown(m_Stream->lowest_layer().shutdown_both, ec);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue