mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 10:51:05 +08:00
1
This commit is contained in:
parent
c62614e0c0
commit
e07584bcdd
|
@ -80,7 +80,7 @@ namespace FastTunnel.Core.Dispatchers
|
|||
using (var stream1 = await tcs.Task)
|
||||
using (var stream2 = new NetworkStream(_socket, true) { ReadTimeout = 1000 * 60 * 10 })
|
||||
{
|
||||
await Task.WhenAll(stream1.CopyToAsync(stream2), stream2.CopyToAsync(stream1));
|
||||
await Task.WhenAny(stream1.CopyToAsync(stream2), stream2.CopyToAsync(stream1));
|
||||
}
|
||||
|
||||
logger.LogDebug($"[Forward]Swap OK {msgId}");
|
||||
|
|
Loading…
Reference in New Issue
Block a user