mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2024-09-20 23:48:30 +08:00
屏蔽一个异常
This commit is contained in:
parent
4f69ae3e96
commit
29ce9731ec
|
@ -29,7 +29,7 @@ namespace FastTunnel.Core.Forwarder.MiddleWare
|
|||
public async Task Handle(HttpContext context, Func<Task> next)
|
||||
{
|
||||
Interlocked.Increment(ref connectionCount);
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
if (context.Request.Method != "PROXY")
|
||||
|
@ -78,6 +78,7 @@ namespace FastTunnel.Core.Forwarder.MiddleWare
|
|||
await closedAwaiter.Task.WaitAsync(cts.Token);
|
||||
logger.LogDebug($"[PROXY]:Closed {requestId}");
|
||||
}
|
||||
catch (TaskCanceledException) { }
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogError(ex);
|
||||
|
|
Loading…
Reference in New Issue
Block a user