Make sure socket closed is logged
This commit is contained in:
parent
a267e86e1f
commit
9a67ac5341
|
|
@ -51,9 +51,15 @@ namespace Microsoft.AspNetCore.Sockets.Internal.Transports
|
||||||
{
|
{
|
||||||
_logger.SocketOpened(_connection.ConnectionId);
|
_logger.SocketOpened(_connection.ConnectionId);
|
||||||
|
|
||||||
await ProcessSocketAsync(ws);
|
try
|
||||||
|
{
|
||||||
|
await ProcessSocketAsync(ws);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
_logger.SocketClosed(_connection.ConnectionId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_logger.SocketClosed(_connection.ConnectionId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task ProcessSocketAsync(WebSocket socket)
|
public async Task ProcessSocketAsync(WebSocket socket)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue