Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit c17854f

Browse files
committed
Fix StreamSocketOutput
1 parent 6216aca commit c17854f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNet.Server.Kestrel/Filter/StreamSocketOutput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void ProducingComplete(MemoryPoolIterator2 end, int count)
5252
returnBlock.Pool?.Return(returnBlock);
5353
}
5454

55-
_outputStream.Write(end.Block.Array, end.Block.Data.Offset, end.Index);
55+
_outputStream.Write(end.Block.Array, end.Block.Data.Offset, end.Index - end.Block.Data.Offset);
5656
end.Block.Pool?.Return(end.Block);
5757
}
5858
}

0 commit comments

Comments
 (0)