Skip to content

Commit

Permalink
Fix for AlignedRecieve to stop when possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusfriedman committed Nov 21, 2023
1 parent 42e4958 commit b9fbf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/Extensions/SocketExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ public static int AlignedReceive(byte[] buffer, int offset, int amount, System.N
{
//Receive it into the buffer at the given offset taking into account what was already received
if (socket.IsNullOrDisposed() is false) justReceived = socket.Receive(buffer, offset, amount, System.Net.Sockets.SocketFlags.None, out error);
else justReceived = 0;
else break;

//Determine how to continue
switch (error)
Expand Down

0 comments on commit b9fbf5b

Please sign in to comment.