Skip to content

Commit be5151a

Browse files
committed
HttpServerConnection: use AsioTlsStream::GracefulDisconnect()
This new helper function has proper timeout handling which was missing here.
1 parent 7784bef commit be5151a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/remote/httpserverconnection.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ void HttpServerConnection::Disconnect()
9393

9494
m_CheckLivenessTimer.cancel();
9595

96-
m_Stream->lowest_layer().cancel(ec);
97-
98-
m_Stream->next_layer().async_shutdown(yc[ec]);
99-
100-
m_Stream->lowest_layer().shutdown(m_Stream->lowest_layer().shutdown_both, ec);
96+
m_Stream->GracefulDisconnect(m_IoStrand, yc);
10197

10298
auto listener (ApiListener::GetInstance());
10399

0 commit comments

Comments
 (0)