Skip to content
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 ext/MessagePack
Submodule MessagePack updated 419 files
6 changes: 3 additions & 3 deletions src/Nerdbank.Streams/MultiplexingStream.Formatters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ internal ReadOnlySequence<byte> SerializeException(Exception? exception)
}

// Get the exception message and return it as an exception.
string remoteErrorMsg = reader.ReadString();
string? remoteErrorMsg = reader.ReadString();
return new MultiplexingProtocolException($"Received error from remote side: {remoteErrorMsg}");
}

Expand Down Expand Up @@ -610,14 +610,14 @@ internal override Channel.OfferParameters DeserializeOfferParameters(ReadOnlySeq
throw new MultiplexingProtocolException("Insufficient elements in offer parameter payload.");
}

string name = reader.ReadString();
string? name = reader.ReadString();
long? remoteWindowSize = null;
if (elementsCount > 1)
{
remoteWindowSize = reader.ReadInt64();
}

return new Channel.OfferParameters(name, remoteWindowSize);
return new Channel.OfferParameters(name ?? string.Empty, remoteWindowSize);
}

internal override ReadOnlySequence<byte> Serialize(Channel.AcceptanceParameters acceptanceParameters)
Expand Down
2 changes: 1 addition & 1 deletion src/Nerdbank.Streams/Nerdbank.Streams.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<PackageValidationBaselineVersion>2.13.16</PackageValidationBaselineVersion>
<DefineConstants>$(DefineConstants);MESSAGEPACK_INTERNAL;CSHARP8</DefineConstants>
<DefineConstants>$(DefineConstants);MESSAGEPACK_INTERNAL</DefineConstants>

<Summary>Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.</Summary>
<Description>$(Summary)</Description>
Expand Down
Loading