1
0
Fork 0
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:
Ahmet Ibrahim Aksoy 2024-07-12 19:47:03 +02:00 committed by GitHub
parent c9f7f954d4
commit d15e757575
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -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(),