mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
Add missing cancellation throw in SendPingAsync path (#104780)
This commit is contained in:
parent
c9f7f954d4
commit
d15e757575
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ namespace System.Net.NetworkInformation
|
|||
// to the echo request we just sent. We need to filter such messages out, and continue reading until our timeout.
|
||||
// For example, when pinging the local host, we need to filter out our own echo requests that the socket reads.
|
||||
long startingTimestamp = Stopwatch.GetTimestamp();
|
||||
while (!timeoutOrCancellationToken.IsCancellationRequested)
|
||||
while (true)
|
||||
{
|
||||
SocketReceiveFromResult receiveResult = await socket.ReceiveFromAsync(
|
||||
receiveBuffer.AsMemory(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue