Skip to content

Commit 821ff26

Browse files
committed
HttpServerConnection: use AsioTlsStream::GracefulDisconnect()
This new helper function has proper timeout handling which was missing here.
1 parent 53d8217 commit 821ff26

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/remote/httpserverconnection.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ void HttpServerConnection::Disconnect()
9595

9696
m_Stream->lowest_layer().cancel(ec);
9797

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

102100
auto listener (ApiListener::GetInstance());
103101

0 commit comments

Comments
 (0)