Skip to content

Commit

Permalink
Merge pull request #6 from tpeczek/fix-request-n-read
Browse files Browse the repository at this point in the history
Fix for Request N read
  • Loading branch information
kbahr authored Aug 31, 2019
2 parents ad99a3a + dd8d52e commit 1960d65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RSocket.Core/RSocketProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public RequestChannel(Int32 id, ReadOnlySequence<byte> data, ReadOnlySequence<by
public RequestChannel(in Header header, ref SequenceReader<byte> reader)
{
Header = header;
reader.TryRead(out int initialRequest); InitialRequest = initialRequest;
reader.TryReadBigEndian(out int initialRequest); InitialRequest = initialRequest;
TryReadRemaining(header, InnerLength, ref reader, out MetadataLength, out DataLength);
}

Expand Down Expand Up @@ -211,7 +211,7 @@ public RequestStream(Int32 id, ReadOnlySequence<byte> data, ReadOnlySequence<byt
public RequestStream(in Header header, ref SequenceReader<byte> reader)
{
Header = header;
reader.TryRead(out int initialRequest); InitialRequest = initialRequest;
reader.TryReadBigEndian(out int initialRequest); InitialRequest = initialRequest;
TryReadRemaining(header, InnerLength, ref reader, out MetadataLength, out DataLength);
}

Expand Down Expand Up @@ -359,7 +359,7 @@ public RequestN(Int32 id, ReadOnlySequence<byte> data, ReadOnlySequence<byte> me
public RequestN(in Header header, ref SequenceReader<byte> reader)
{
Header = header;
reader.TryRead(out int requestNumber); RequestNumber = requestNumber;
reader.TryReadBigEndian(out int requestNumber); RequestNumber = requestNumber;
}

public bool Validate(bool canContinue = false)
Expand Down

0 comments on commit 1960d65

Please sign in to comment.