gateway: don't shutdown on connection handler drop (#2848)

This commit is contained in:
Jon Häggblad
2023-01-16 10:31:01 +01:00
committed by GitHub
parent d2f33180e2
commit 6b52132501
@@ -77,6 +77,9 @@ pub(crate) async fn handle_connection<R, S, St>(
S: AsyncRead + AsyncWrite + Unpin + Send,
St: Storage,
{
// If the connection handler abruptly stops, we shouldn't signal global shutdown
shutdown.mark_as_success();
match shutdown
.run_future(handle.perform_websocket_handshake())
.await