Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix partial header receive by WatsonTCP. Fixes #75 #110

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CoreRemoting/CoreRemoting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0" />
<PackageReference Include="System.Security.Cryptography.OpenSsl" Version="5.0.0" />
<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0" />
<PackageReference Include="WatsonTcp" Version="6.0.6" />
<PackageReference Include="WatsonTcp" Version="6.0.8" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions CoreRemoting/RemotingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ await _authenticationCompletedTaskSource.Task.Timeout(
/// Called when a message is received from server.
/// </summary>
/// <param name="rawMessage">Raw message data</param>
private void OnMessage(byte[] rawMessage)
private void OnMessage(byte[] rawMessage) => Task.Run(() =>
{
var message = TryDeserialize(rawMessage);

Expand Down Expand Up @@ -472,7 +472,7 @@ private void OnMessage(byte[] rawMessage)
// A wire message could have been tampered with and couldn't be deserialized
break;
}
}
});

private WireMessage TryDeserialize(byte[] rawMessage)
{
Expand Down
Loading