author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20 values | license stringclasses 3 values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
1,799 | 15.04.2019 11:57:22 | 25,200 | d6ad2a3b2e280b1105d6524ef205fd64f8307b4b | Add Channel.MultiplexingStream property
Closes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -196,6 +196,15 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nawait Assert.ThrowsAnyAsync<OperationCan... | C# | MIT License | aarnott/nerdbank.streams | Add Channel.MultiplexingStream property
Closes #69 |
1,799 | 20.05.2019 21:53:16 | 21,600 | 526ba009fdef8bd0609bc0c4375ab7012146438d | Allow PipeStream to dispose without completing pipe
Closes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/PipeStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/PipeStreamTests.cs",
"diff": "@@ -65,21 +65,34 @@ public class PipeStreamTests : TestBase\npublic async Task Dispose_CompletesWriter()\n{\nTaskCompletionSource<object> comp... | C# | MIT License | aarnott/nerdbank.streams | Allow PipeStream to dispose without completing pipe
Closes #67 |
1,799 | 15.04.2019 14:44:21 | 25,200 | 164ac3de0e177c2c044d068b7728085a2a76a349 | Add DuplexPipe class to public API | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -41,3 +41,4 @@ Specialized .NET Stream classes\n1. [`SequenceTextReader`](doc/SequenceTextReader.md) is a `TextReader`-derived type that can\nread directly from any `ReadOnlySequence<byte>`, making it more reusa... | C# | MIT License | aarnott/nerdbank.streams | Add DuplexPipe class to public API |
1,807 | 26.05.2019 15:10:10 | -32,400 | d2692984c45a75bea9e1ef6eab4b63cb6f8feecf | Add test for propagating exceptions from underlying streams. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/PipeExtensionsTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/PipeExtensionsTests.cs",
"diff": "@@ -83,6 +83,29 @@ public class PipeExtensionsTests : TestBase\nAssert.False(ms.IsDisposed);\n}\n+ [Fact]\n+ public async Task UsePipe... | C# | MIT License | aarnott/nerdbank.streams | Add test for propagating exceptions from underlying streams. |
1,807 | 26.05.2019 13:57:48 | -32,400 | d68034d3cda5c5e8308c936a59930986ffd52300 | Avoid throwing exceptions unobserved which will trigger the `TaskScheduler.UnobservedTaskException` event.
Because such an exception is properly propagated to the counterpart by PipeReader/PipeWriter.Complete(ex), it does not need to be rethrown.
Closes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"new_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"diff": "@@ -106,8 +106,9 @@ namespace Nerdbank.Streams\n}\ncatch (Exception ex)\n{\n+ // Propagate the exception to the reader.\npipe.Writer.Complete(ex);\n- throw;... | C# | MIT License | aarnott/nerdbank.streams | Avoid throwing exceptions unobserved which will trigger the `TaskScheduler.UnobservedTaskException` event.
Because such an exception is properly propagated to the counterpart by PipeReader/PipeWriter.Complete(ex), it does not need to be rethrown.
Closes #75 |
1,799 | 31.05.2019 09:26:06 | 21,600 | ae55802e874c4ffc77a7cc7e9a4ae1b8e60a2ec4 | Fix tests to timeout instead of hang | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -426,7 +426,7 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nAssert.True(eph.Acceptance.IsCompleted);\... | C# | MIT License | aarnott/nerdbank.streams | Fix tests to timeout instead of hang |
1,799 | 31.05.2019 09:30:34 | 21,600 | 5c91612000c8854646000f1feac7e8e3bcb4e6c3 | Seal the DuplexPipe class | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/DuplexPipe.cs",
"new_path": "src/Nerdbank.Streams/DuplexPipe.cs",
"diff": "@@ -9,7 +9,7 @@ namespace Nerdbank.Streams\n/// <summary>\n/// A basic implementation of <see cref=\"IDuplexPipe\"/>.\n/// </summary>\n- public class DuplexPipe : I... | C# | MIT License | aarnott/nerdbank.streams | Seal the DuplexPipe class |
1,799 | 01.06.2019 11:58:04 | 21,600 | 0cd9261085bed2aaa017de0025f024bb35fba43b | Make it easy to add a TraceSource to each created Channel | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -37,9 +37,19 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nmx1TraceSource.Listeners.Add(new XunitTrac... | C# | MIT License | aarnott/nerdbank.streams | Make it easy to add a TraceSource to each created Channel |
1,799 | 31.05.2019 15:35:33 | 21,600 | 56c98887b587d5af6328c2f93c6ce268cbe0caa8 | Correct the path to the .ruleset file used by library
Use .ConfigureAwait(false) everywhere and rename a few Async methods.
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"diff": "@@ -221,7 +221,7 @@ namespace Nerdbank.Streams\n// Now wait for whatever they may have written previously to propagate to the Channe... | C# | MIT License | aarnott/nerdbank.streams | Correct the path to the .ruleset file used by library
Use .ConfigureAwait(false) everywhere and rename a few Async methods.
Fixes #79 |
1,799 | 01.06.2019 17:41:38 | 21,600 | 2e993cfe641a6d1cb885b9918b556dbcde78ffdf | Get solution fully building on Ubuntu 18 | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines.yml",
"new_path": "azure-pipelines.yml",
"diff": "@@ -20,11 +20,31 @@ jobs:\n- job: Windows\npool: Hosted VS2017\nsteps:\n- - task: DotNetCoreInstaller@0\n- displayName: Install .NET Core SDK 2.2.104\n+ - task: UseDotNet@2\n+ displayName: Insta... | C# | MIT License | aarnott/nerdbank.streams | Get solution fully building on Ubuntu 18 |
1,799 | 01.06.2019 20:25:54 | 21,600 | 522bcfb1791540b963238ee3836e1c1eed5326d8 | Use MIT license expression in package | [
{
"change_type": "MODIFY",
"old_path": "src/Directory.Build.props",
"new_path": "src/Directory.Build.props",
"diff": "<DefineConstants Condition=\" '$(TargetFramework)' == 'netcoreapp2.1' or '$(TargetFramework)' == 'netcoreapp2.2' \">$(DefineConstants);SPAN_BUILTIN</DefineConstants>\n<GenerateDocume... | C# | MIT License | aarnott/nerdbank.streams | Use MIT license expression in package |
1,799 | 16.06.2019 13:18:19 | 21,600 | 8c52bfacf9d3d14863e37f350cca9d96df5562b6 | Use global.json specified SDK | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines/dotnet.yml",
"new_path": "azure-pipelines/dotnet.yml",
"diff": "steps:\n-- script: dotnet restore src /v:m /bl:\"$(Build.ArtifactStagingDirectory)/build_logs/restore.binlog\"\n+- script: dotnet restore /v:m /bl:\"$(Build.ArtifactStagingDirector... | C# | MIT License | aarnott/nerdbank.streams | Use global.json specified SDK |
1,799 | 25.06.2019 10:19:12 | 21,600 | 13fb0c6c61579ed55518abee981ff54ee055f854 | Demonstrate a race condition in channel write+dispose
When Channel.ProcessOutboundTransmissionsAsync has not yet processed the written and flushed buffer by the time Channel.Dispose is called, the channel can end up terminating before the content is transmitted.
Repros (occasionally, or with debugger help in timing) | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -306,6 +306,34 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nAssert.Equal(0, await b.ReadAsync(receiv... | C# | MIT License | aarnott/nerdbank.streams | Demonstrate a race condition in channel write+dispose
When Channel.ProcessOutboundTransmissionsAsync has not yet processed the written and flushed buffer by the time Channel.Dispose is called, the channel can end up terminating before the content is transmitted.
Repros #88 (occasionally, or with debugger help in timing) |
1,799 | 25.06.2019 13:11:33 | 21,600 | 574fd546c5dc94caa237fc73f67d63590e78c32a | Expand existing test to cover scenario in | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -283,11 +283,13 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nAssert.Equal(5, b.ReadByte());\n}\n- [F... | C# | MIT License | aarnott/nerdbank.streams | Expand existing test to cover scenario in #88 |
1,799 | 06.07.2019 16:33:10 | 21,600 | 9deb8dceb68b9a669925886920a0498fb21bf111 | Flush stream within semaphore
Similar fix to what we had to [fix in streamjsonrpc][1] a while ago.
[1]: | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"diff": "@@ -923,7 +923,6 @@ namespace Nerdbank.Streams\nAssumes.True(payload.Length <= this.framePayloadMaxLength, nameof(payload), \"Frame content exceeds ... | C# | MIT License | aarnott/nerdbank.streams | Flush stream within semaphore
Similar fix to what we had to [fix in streamjsonrpc][1] a while ago.
[1]: https://github.com/microsoft/vs-streamjsonrpc/pull/176 |
1,799 | 05.07.2019 13:45:52 | 21,600 | 5f7fe35ece7fe511878ee1a1cfb554066a7b6e6d | Truncate long data logs in tests | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/XunitTraceListener.cs",
"new_path": "src/Nerdbank.Streams.Tests/XunitTraceListener.cs",
"diff": "@@ -31,6 +31,15 @@ internal class XunitTraceListener : TraceListener\n#if !NETCOREAPP1_0\nif (data is ReadOnlySequence<byte> sequence)\n... | C# | MIT License | aarnott/nerdbank.streams | Truncate long data logs in tests |
1,799 | 05.07.2019 13:56:50 | 21,600 | 98c2b6d20e1e397a1a1c48275695c0cf695f3e53 | Add timestamp to xunit trace listener | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/XunitTraceListener.cs",
"new_path": "src/Nerdbank.Streams.Tests/XunitTraceListener.cs",
"diff": "@@ -11,6 +11,7 @@ internal class XunitTraceListener : TraceListener\n{\nprivate readonly ITestOutputHelper logger;\nprivate readonly Str... | C# | MIT License | aarnott/nerdbank.streams | Add timestamp to xunit trace listener |
1,799 | 05.07.2019 14:14:25 | 21,600 | ed6c19535f6ccb05d81f0749d397456e61cce595 | Report insufficient bytes instead of hang in tests | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/TestBase.cs",
"new_path": "src/Nerdbank.Streams.Tests/TestBase.cs",
"diff": "@@ -100,6 +100,11 @@ public abstract class TestBase : IDisposable\n}\nreader.AdvanceTo(readResult.Buffer.End);\n+\n+ if (readResult.IsCompleted && bytesRece... | C# | MIT License | aarnott/nerdbank.streams | Report insufficient bytes instead of hang in tests |
1,799 | 06.07.2019 21:26:07 | 21,600 | 3133728f1d384b3103297c51b128332b5c93c8d2 | Fix versioning bug | [
{
"change_type": "MODIFY",
"old_path": "src/Directory.Build.props",
"new_path": "src/Directory.Build.props",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Nerdbank.GitVersioning\" Version=\"3.0.15-beta\" PrivateAssets=\"all\" />\n+ <PackageReference Include=\"Nerdbank.GitVers... | C# | MIT License | aarnott/nerdbank.streams | Fix versioning bug |
1,799 | 10.07.2019 08:18:40 | 21,600 | 9d1df2ab1d3699988a23183913dfdaf19eaf3891 | Show off PrefixingBufferWriter<T>.Length property | [
{
"change_type": "MODIFY",
"old_path": "doc/PrefixingBufferWriter.md",
"new_path": "doc/PrefixingBufferWriter.md",
"diff": "@@ -16,19 +16,22 @@ content for the header.\nvoid WriteList<T>(IBufferWriter<byte> writer, IEnumerable<T> items)\n{\nvar prefixingWriter = new PrefixingBufferWriter<byte>(write... | C# | MIT License | aarnott/nerdbank.streams | Show off PrefixingBufferWriter<T>.Length property |
1,799 | 15.07.2019 20:50:47 | 21,600 | 1d9cd0a131178c138df1e47d6bb165a87831c733 | Add assertions for MultiplexingStream disposal
These pass in this version. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -89,8 +89,13 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\npublic async Task Dispose_DisposesChannels... | C# | MIT License | aarnott/nerdbank.streams | Add assertions for MultiplexingStream disposal
These pass in this version. |
1,799 | 16.07.2019 15:52:05 | 21,600 | 9682645282c78e2ca31ce01d73094e7ff923cd2a | Fix channel shutdown when the entire mxstream is disposed
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -89,13 +89,11 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\npublic async Task Dispose_DisposesChannel... | C# | MIT License | aarnott/nerdbank.streams | Fix channel shutdown when the entire mxstream is disposed
Fixes #95 |
1,799 | 16.07.2019 16:05:10 | 21,600 | cdcd0cbb91d89de3ec96b72e98a571dd27ea09ce | Drop support for anything below net472 and netcoreapp2.1 | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines/dotnet.yml",
"new_path": "azure-pipelines/dotnet.yml",
"diff": "@@ -11,24 +11,11 @@ steps:\ndisplayName: dotnet pack\nworkingDirectory: src\n-- script: dotnet test --no-build -c $(BuildConfiguration) -f net461 --filter \"TestCategory!=FailsInCl... | C# | MIT License | aarnott/nerdbank.streams | Drop support for anything below net472 and netcoreapp2.1 |
1,799 | 16.07.2019 16:24:31 | 21,600 | 6d05a00727faa6435edede95a4fea6062da62e19 | Update to Node.js 10 during build | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines/node.yml",
"new_path": "azure-pipelines/node.yml",
"diff": "@@ -5,7 +5,7 @@ steps:\n- task: NodeTool@0\ndisplayName: Use Node 8.x\ninputs:\n- versionSpec: 8.x\n+ versionSpec: 10.x\n- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.Y... | C# | MIT License | aarnott/nerdbank.streams | Update to Node.js 10 during build |
1,799 | 16.07.2019 16:29:21 | 21,600 | a9e70f7c99e5fd252e3611b0b78eadad0dc551e7 | Add VS Code recommended extensions | [
{
"change_type": "ADD",
"old_path": null,
"new_path": ".vscode/extensions.json",
"diff": "+{\n+ // See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.\n+ // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp\n+\n+ // List of extensions w... | C# | MIT License | aarnott/nerdbank.streams | Add VS Code recommended extensions |
1,799 | 16.07.2019 16:40:52 | 21,600 | c0d22f7ffad40ef18ae7786c4e2c6a3b24cdae60 | Avoid ObjectDisposedException thrown on shutdown | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"diff": "@@ -302,9 +302,24 @@ namespace Nerdbank.Streams\ninternal void OnContentWritingCompleted()\n{\nthis.DisposeSelfOnFailure(Task.Run(as... | C# | MIT License | aarnott/nerdbank.streams | Avoid ObjectDisposedException thrown on shutdown |
1,799 | 29.07.2019 17:12:36 | 21,600 | c4fa0c2524591ff469693ce964a64c2d265430fe | Add ability to specify PipeOptions for reader of a Channel
Closes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamChannelOptionsTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamChannelOptionsTests.cs",
"diff": "@@ -83,6 +83,19 @@ public class MultiplexingStreamChannelOptionsTests : TestBase\nAssert.Throws<Ar... | C# | MIT License | aarnott/nerdbank.streams | Add ability to specify PipeOptions for reader of a Channel
Closes #103 |
1,799 | 30.07.2019 23:46:06 | 21,600 | dd02cf7585fa115cd267c132f0edb9a3321668f5 | Remove net472 target
This target isn't necessary (we don't compile any differently for it compared to netstandard2.0).
I also remove the unnecessary MSBuild.Sdk.Extras and a packageref that never compiled since we removed netstandard1.6 support. | [
{
"change_type": "MODIFY",
"old_path": "src/global.json",
"new_path": "src/global.json",
"diff": "{\n\"sdk\": {\n\"version\": \"2.2.300\"\n- },\n- \"msbuild-sdks\": {\n- \"MSBuild.Sdk.Extras\": \"1.6.61\"\n}\n}\n"
}
] | C# | MIT License | aarnott/nerdbank.streams | Remove net472 target
This target isn't necessary (we don't compile any differently for it compared to netstandard2.0).
I also remove the unnecessary MSBuild.Sdk.Extras and a packageref that never compiled since we removed netstandard1.6 support. |
1,799 | 30.07.2019 23:40:07 | 21,600 | f4c5c9d783315958e84087a983acfe4516bd4932 | Add PipeReader.ReadSlice extension method
Closes | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -25,7 +25,9 @@ Specialized .NET Stream classes\n`System.IO.Stream` for reading and/or writing.\n1. [`UsePipe()`](doc/UsePipe.md) enables reading from\nand writing to a `Stream` or `WebSocket` using the `PipeRead... | C# | MIT License | aarnott/nerdbank.streams | Add PipeReader.ReadSlice extension method
Closes #105 |
1,799 | 31.07.2019 07:42:05 | 21,600 | e6a21355fdaed022e812e68f5cbe6bb38ff3e000 | Add support for PipeReader.Complete
Also no-op instead of throw for OnWriterCompleted. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/NestedPipeReaderTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/NestedPipeReaderTests.cs",
"diff": "@@ -187,17 +187,48 @@ public class NestedPipeReaderTests : TestBase, IAsyncLifetime\n}\n[Fact]\n- public void OnWriterCompleted_No... | C# | MIT License | aarnott/nerdbank.streams | Add support for PipeReader.Complete
Also no-op instead of throw for OnWriterCompleted. |
1,799 | 31.07.2019 10:27:50 | 21,600 | 1cefe55af35a40d00fd7e2a21e280fc705f79f60 | Avoid leaking reclaimed buffer | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/NestedPipeReader.cs",
"new_path": "src/Nerdbank.Streams/NestedPipeReader.cs",
"diff": "@@ -40,6 +40,9 @@ namespace Nerdbank.Streams\nif (this.Consumed(consumed, consumed))\n{\nthis.pipeReader.AdvanceTo(consumed);\n+\n+ // When we call Adva... | C# | MIT License | aarnott/nerdbank.streams | Avoid leaking reclaimed buffer |
1,799 | 31.07.2019 10:24:42 | 21,600 | 05a08792db49af10366886a38357ab2e0cd75ad5 | Fix PipeStream bug when reading end of PipeReader | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/PipeStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/PipeStreamTests.cs",
"diff": "@@ -235,6 +235,22 @@ public class PipeStreamTests : TestBase\nAssert.Equal(sendBuffer.Take(3), recvBuffer.Take(3));\n}\n+ [Fact]\n+ public asy... | C# | MIT License | aarnott/nerdbank.streams | Fix PipeStream bug when reading end of PipeReader |
1,799 | 06.09.2019 13:57:44 | 21,600 | 7f6d0689a647e6367ea52b0f3da88d676b06cc40 | Add to write-only channel test, which makes it fail
The Channel doesn't recognize when the existing pipe has a pre-completed writer so it doesn't send the ContentCompleted frame. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -97,10 +97,16 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nvar ch1 = this.mx1.CreateChannel(new Mult... | C# | MIT License | aarnott/nerdbank.streams | Add to write-only channel test, which makes it fail
The Channel doesn't recognize when the existing pipe has a pre-completed writer so it doesn't send the ContentCompleted frame. |
1,799 | 07.09.2019 11:39:55 | 21,600 | 06e150925ef13356bfdd65ba56adb0e8a95a680d | Enable Stream.UsePipe() extension method to operate on one-way streams | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/PipeExtensionsTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/PipeExtensionsTests.cs",
"diff": "// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.\nusing System;\n+using Syste... | C# | MIT License | aarnott/nerdbank.streams | Enable Stream.UsePipe() extension method to operate on one-way streams |
1,799 | 21.09.2019 08:09:54 | 21,600 | 9a1cd0e778e6450206964a1d5c009893f0f11926 | Fix build warnings
Workaround | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"diff": "@@ -249,7 +249,7 @@ namespace Nerdbank.Streams\n}\nelse\n{\n- this.mxStreamIOReaderCompleted.ContinueWith(finalDisposalAction, this,... | C# | MIT License | aarnott/nerdbank.streams | Fix build warnings
Workaround https://github.com/dotnet/roslyn/issues/38791 |
1,799 | 21.09.2019 10:26:53 | 21,600 | fb980b9d636142f225dd4a475d3a8fb4a8f54828 | Fix nullable ref build warnings | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"new_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"diff": "@@ -224,8 +224,8 @@ namespace Nerdbank.Streams\nRequires.NotNull(stream, nameof(stream));\nRequires.Argument(stream.CanRead || stream.CanWrite, nameof(strea... | C# | MIT License | aarnott/nerdbank.streams | Fix nullable ref build warnings |
1,799 | 21.09.2019 10:17:29 | 21,600 | c73c7d383dfec4ec8a2cb5cb411f0375b5c1095e | Add DuplexPipe ability to do half-duplex | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/DuplexPipeTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/DuplexPipeTests.cs",
"diff": "using System;\nusing System.IO.Pipelines;\n+using System.Threading.Tasks;\nusing Nerdbank.Streams;\nusing Xunit;\n@@ -25,4 +26,63 @@ public cl... | C# | MIT License | aarnott/nerdbank.streams | Add DuplexPipe ability to do half-duplex |
1,799 | 21.09.2019 10:24:00 | 21,600 | 407c6128d98d3a38cb3b92029f0926e117781097 | Add tests for half-duplex pipes over MultiplexStream | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -11,7 +11,6 @@ using System.Runtime.ExceptionServices;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing Micro... | C# | MIT License | aarnott/nerdbank.streams | Add tests for half-duplex pipes over MultiplexStream |
1,799 | 21.09.2019 12:29:53 | 21,600 | ee389e1c44eafcbc32e5ac1e54908194c3a2b427 | Capture use of new .NET Core 2.1 methods on MonitoringStream | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MonitoringStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MonitoringStreamTests.cs",
"diff": "@@ -370,4 +370,110 @@ public class MonitoringStreamTests : TestBase\nAssert.Equal(this.underlyingStream.Position, this.monitoringS... | C# | MIT License | aarnott/nerdbank.streams | Capture use of new .NET Core 2.1 methods on MonitoringStream |
1,799 | 21.09.2019 12:56:42 | 21,600 | f686d3525db86b26f75a09198e4d8f98ba7e8655 | Add MonitoringStream.EndOfStream event | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MonitoringStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MonitoringStreamTests.cs",
"diff": "@@ -83,6 +83,22 @@ public class MonitoringStreamTests : TestBase\nAssert.True(didReadInvoked);\n}\n+ [Fact]\n+ public void Read_Ra... | C# | MIT License | aarnott/nerdbank.streams | Add MonitoringStream.EndOfStream event |
1,799 | 21.09.2019 15:28:59 | 21,600 | 56a607b605a6c1b740efdfd83403ac105b8462dd | Add PipeReader/PipeWriter.OnCompleted extension methods | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"new_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"diff": "@@ -370,6 +370,36 @@ namespace Nerdbank.Streams\n/// <returns>A reader that ends after <paramref name=\"length\"/> bytes are read.</returns>\npublic static ... | C# | MIT License | aarnott/nerdbank.streams | Add PipeReader/PipeWriter.OnCompleted extension methods |
1,799 | 21.09.2019 15:37:31 | 21,600 | 7a96dc4cea827f7ff5d843336bfdbfd93bd16b5b | Avoid failing when a Channel.Dispose race condition occurs
Stabilizes DisposeChannel_WhileRemoteEndIsTransmitting test | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"diff": "@@ -825,8 +825,17 @@ namespace Nerdbank.Streams\nthis.TraceSource.TraceData(TraceEventType.Verbose, (int)TraceEventId.FrameReceivedPayload, payload)... | C# | MIT License | aarnott/nerdbank.streams | Avoid failing when a Channel.Dispose race condition occurs
Stabilizes DisposeChannel_WhileRemoteEndIsTransmitting test |
1,799 | 21.09.2019 16:09:42 | 21,600 | 7d06a241ad6639400365570cf69d5a7ce351c9d4 | Make DuplexPipe more flexible | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/DuplexPipeTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/DuplexPipeTests.cs",
"diff": "@@ -19,12 +19,11 @@ public class DuplexPipeTests\n}\n[Fact]\n- public void Ctor_RejectsNulls()\n+ public void Ctor_ReplacesNullsWithCompleted(... | C# | MIT License | aarnott/nerdbank.streams | Make DuplexPipe more flexible |
1,799 | 21.09.2019 19:09:52 | 21,600 | 96deffdf5f63f9b0e9fda2fd35d2c35a182af5ff | Allow UsePipe to "unwrap" a stream that is already wrapping a pipe
Closes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/PipeExtensionsTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/PipeExtensionsTests.cs",
"diff": "@@ -223,6 +223,16 @@ public partial class PipeExtensionsTests : TestBase\n});\n}\n+ [Fact]\n+ public void UsePipe_CollapseAdapterStack... | C# | MIT License | aarnott/nerdbank.streams | Allow UsePipe to "unwrap" a stream that is already wrapping a pipe
Closes #111 |
1,799 | 22.09.2019 12:51:01 | 21,600 | bf62afe1a72d055ca88097a0fa0c9d1dd236cba7 | Move mkdirp into dev dependency | [
{
"change_type": "MODIFY",
"old_path": "src/nerdbank-streams/package.json",
"new_path": "src/nerdbank-streams/package.json",
"diff": "\"gulp-typescript\": \"^5.0.0-alpha.3\",\n\"jasmine\": \"^3.2.0\",\n\"jshint\": \"^2.9.6\",\n+ \"mkdirp\": \"^0.5.1\",\n\"nerdbank-gitversioning\": \"^2.2.7\",\n\"pat... | C# | MIT License | aarnott/nerdbank.streams | Move mkdirp into dev dependency |
1,799 | 23.09.2019 10:33:32 | 21,600 | 6356da0f18b28e671456329c8c5e059f7b92e36e | Add Stream.ReadBlockAsync extension method | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -44,3 +44,5 @@ Specialized .NET Stream classes\nread directly from any `ReadOnlySequence<byte>`, making it more reusable than `StreamReader`\nand thus allows for alloc-free reading across many sequences.\n1. [`D... | C# | MIT License | aarnott/nerdbank.streams | Add Stream.ReadBlockAsync extension method |
1,799 | 25.09.2019 22:14:51 | 21,600 | 3983f5eb33fe80e1c9766ba6d37bedc44a223344 | Fix NRE that can be thrown from OnChannelTerminatedAsync | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"diff": "@@ -732,7 +732,7 @@ namespace Nerdbank.Streams\n/// <param name=\"channelId\">The ID of the terminated channel.</param>\nprivate async Task OnChanne... | C# | MIT License | aarnott/nerdbank.streams | Fix NRE that can be thrown from OnChannelTerminatedAsync |
1,799 | 25.09.2019 22:15:02 | 21,600 | 280051388712f42af548d9ea048ae69a03ccb8a1 | Fix solution item paths | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.sln",
"new_path": "src/Nerdbank.Streams.sln",
"diff": "@@ -7,14 +7,14 @@ Project(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"Nerdbank.Streams\", \"Nerdban\nEndProject\nProject(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"Solution It... | C# | MIT License | aarnott/nerdbank.streams | Fix solution item paths |
1,799 | 02.10.2019 22:05:40 | 21,600 | bb851a101022482f6340d52385c2361f46106224 | Eliminate extra IDE warnings till they can be fixed | [
{
"change_type": "MODIFY",
"old_path": ".editorconfig",
"new_path": ".editorconfig",
"diff": "@@ -129,7 +129,7 @@ csharp_indent_labels = flush_left\n# Prefer \"var\" everywhere\ncsharp_style_var_for_built_in_types = true:suggestion\ncsharp_style_var_when_type_is_apparent = true:suggestion\n-csharp_s... | C# | MIT License | aarnott/nerdbank.streams | Eliminate extra IDE warnings till they can be fixed |
1,799 | 03.10.2019 06:57:38 | 21,600 | 51df4a8cca6579c6f71c29351bf35e5f5ad91c0b | Add flush test to repro | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/SubstreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/SubstreamTests.cs",
"diff": "@@ -289,6 +289,42 @@ public class SubstreamTests : TestBase\nAssert.Equal(0, this.underlyingStream.Length);\n}\n+ [Theory]\n+ [PairwiseData]\n+ ... | C# | MIT License | aarnott/nerdbank.streams | Add flush test to repro #127 |
1,799 | 02.10.2019 22:05:20 | 21,600 | c7e4b7583d8fb85410422cc08a3b470f6ed7cec1 | Substream.Flush should flush the underlying stream
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/Substream.cs",
"new_path": "src/Nerdbank.Streams/Substream.cs",
"diff": "@@ -75,11 +75,12 @@ namespace Nerdbank.Streams\npublic async ValueTask DisposeAsync(CancellationToken cancellationToken = default)\n{\n// Write out and clear any buff... | C# | MIT License | aarnott/nerdbank.streams | Substream.Flush should flush the underlying stream
Fixes #127 |
1,799 | 03.10.2019 07:08:53 | 21,600 | f5c0b4011c74afce0656967cfeb27f72b4a00577 | Add missing .ConfigureAwait(false) suffixes
I add the threading analyzers to find the missing ones and guard against regression here.
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Directory.Build.props",
"new_path": "src/Directory.Build.props",
"diff": "<!-- <PackageReference Include=\"Microsoft.CodeAnalysis.FxCopAnalyzers\" Version=\"2.9.4\" PrivateAssets=\"all\" /> -->\n<PackageReference Include=\"Microsoft.NETFramework.ReferenceA... | C# | MIT License | aarnott/nerdbank.streams | Add missing .ConfigureAwait(false) suffixes
I add the threading analyzers to find the missing ones and guard against regression here.
Fixes #130 |
1,799 | 03.10.2019 07:14:31 | 21,600 | 88fc8536e881073facd706dc68bbefa9e415b51d | Protect mxstream's underlying stream against concurrent disposal
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"diff": "@@ -538,9 +538,10 @@ namespace Nerdbank.Streams\nthis.TraceSource.TraceEvent(TraceEventType.Information, (int)TraceEventId.StreamDisposed, \"Disposi... | C# | MIT License | aarnott/nerdbank.streams | Protect mxstream's underlying stream against concurrent disposal
Fixes #129 |
1,799 | 29.10.2019 11:14:36 | 21,600 | e9cb0f7d52a46e29c10d8dc7c1982853ff24340c | Simplify exporting from index.ts | [
{
"change_type": "MODIFY",
"old_path": "src/nerdbank-streams/src/index.ts",
"new_path": "src/nerdbank-streams/src/index.ts",
"diff": "-import { Channel } from \"./Channel\";\n-import { ChannelOptions } from \"./ChannelOptions\";\n-import { FullDuplexStream } from \"./FullDuplexStream\";\n-import { I... | C# | MIT License | aarnott/nerdbank.streams | Simplify exporting from index.ts |
1,799 | 29.10.2019 15:42:53 | 21,600 | 8b3e193a3d122435bd7217348a76f4b3c9e897d6 | Define `yarn watch` script | [
{
"change_type": "MODIFY",
"old_path": "src/nerdbank-streams/package.json",
"new_path": "src/nerdbank-streams/package.json",
"diff": "\"private\": false,\n\"scripts\": {\n\"build\": \"tsc -p gulpfile.tsconfig.json && gulp\",\n+ \"watch\": \"node ./node_modules/typescript/bin/tsc -p tsconfig.json -w\... | C# | MIT License | aarnott/nerdbank.streams | Define `yarn watch` script |
1,799 | 29.10.2019 15:43:41 | 21,600 | 75b0258a40c991e24394e4583a94fa72a329c8d7 | Add and fix FullDuplexStream tests | [
{
"change_type": "MODIFY",
"old_path": "src/nerdbank-streams/src/tests/FullDuplexStream.spec.ts",
"new_path": "src/nerdbank-streams/src/tests/FullDuplexStream.spec.ts",
"diff": "-import { PassThrough } from \"stream\";\n+import { PassThrough, Readable, Writable } from \"stream\";\n+import { Deferred... | C# | MIT License | aarnott/nerdbank.streams | Add and fix FullDuplexStream tests |
1,799 | 29.10.2019 16:03:55 | 21,600 | 416f144899fac46b3afe218b087d4e64802b44c6 | Fix end event propagation in FullDuplexStream
This simplifies the FullDuplexStream implementation as well by reusing the PassThrough class. | [
{
"change_type": "MODIFY",
"old_path": "src/nerdbank-streams/src/FullDuplexStream.ts",
"new_path": "src/nerdbank-streams/src/FullDuplexStream.ts",
"diff": "-import { Duplex } from \"stream\";\n+import { Duplex, PassThrough } from \"stream\";\nexport class FullDuplexStream {\npublic static CreatePair... | C# | MIT License | aarnott/nerdbank.streams | Fix end event propagation in FullDuplexStream
This simplifies the FullDuplexStream implementation as well by reusing the PassThrough class. |
1,799 | 30.10.2019 07:24:25 | 21,600 | ab8e9fdb03b6de7debebebd356a3a07c6b197b8f | Add substream support to NPM nerdbank-streams | [
{
"change_type": "MODIFY",
"old_path": "src/nerdbank-streams/README.md",
"new_path": "src/nerdbank-streams/README.md",
"diff": "just one transport stream (e.g. named pipe or web socket) and use it for many independent\nprotocols. For example, one might set up JSON-RPC on one channel and use other ch... | C# | MIT License | aarnott/nerdbank.streams | Add substream support to NPM nerdbank-streams |
1,799 | 06.11.2019 14:26:25 | 25,200 | 2acaaab722704f02f82b3bd1279ee9ef2e354fa4 | Fix order of arguments in HalfDuplexStream default constructor | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/HalfDuplexStream.cs",
"new_path": "src/Nerdbank.Streams/HalfDuplexStream.cs",
"diff": "@@ -28,7 +28,7 @@ namespace Nerdbank.Streams\n/// Initializes a new instance of the <see cref=\"HalfDuplexStream\"/> class.\n/// </summary>\npublic Half... | C# | MIT License | aarnott/nerdbank.streams | Fix order of arguments in HalfDuplexStream default constructor |
1,799 | 16.11.2019 12:38:41 | 25,200 | e59e8cc419ed731587f17033d9582e7e45bd8125 | Update vs-threading dependency
This gets us to a version that can compile with the .NET Native tool chain. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Interop.Tests/Nerdbank.Streams.Interop.Tests.csproj",
"new_path": "src/Nerdbank.Streams.Interop.Tests/Nerdbank.Streams.Interop.Tests.csproj",
"diff": "</ItemGroup>\n<ItemGroup>\n- <PackageReference Include=\"Microsoft.VisualStudio.Threadin... | C# | MIT License | aarnott/nerdbank.streams | Update vs-threading dependency
This gets us to a version that can compile with the .NET Native tool chain. |
1,799 | 05.12.2019 10:25:02 | 25,200 | 6265e064458af5b7e357b857dae17438d92eb43e | Add Sequence<T>.Append(ReadOnlyMemory<T>) | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"diff": "@@ -469,6 +469,79 @@ public class SequenceTests : TestBase\nAssert.Equal(3, seq.AsReadOnlySequence.Length);\n}\n+ [Fact]\n+ public void Append()\n... | C# | MIT License | aarnott/nerdbank.streams | Add Sequence<T>.Append(ReadOnlyMemory<T>) |
1,799 | 05.12.2019 11:21:16 | 25,200 | 1cdcbd1f7c7dc39d1d6918095b57cddb3a473e6e | Run tests on netcoreapp3.1 instead of 2.2
2.1 is LTS and 3.1 is LTS. Everything else is moot. | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines/dotnet.yml",
"new_path": "azure-pipelines/dotnet.yml",
"diff": "@@ -26,9 +26,9 @@ steps:\nworkingDirectory: src\n- task: DotNetCoreCLI@2\n- displayName: dotnet test -f netcoreapp2.2\n+ displayName: dotnet test -f netcoreapp3.1\ninputs:\ncommand... | C# | MIT License | aarnott/nerdbank.streams | Run tests on netcoreapp3.1 instead of 2.2
2.1 is LTS and 3.1 is LTS. Everything else is moot. |
1,799 | 09.12.2019 10:07:05 | 25,200 | 1eda9407f94afc0554b93a35efc9ebca91f9fc44 | Avoid accessing ReadResult.Buffer after PipeReader.AdvanceTo
This fixes a bug where the last Channel transmission can be truncated. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamPerfTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamPerfTests.cs",
"diff": "@@ -156,8 +156,9 @@ public class MultiplexingStreamPerfTests : TestBase, IAsyncLifetime\ndo\n{\nvar readResult = await... | C# | MIT License | aarnott/nerdbank.streams | Avoid accessing ReadResult.Buffer after PipeReader.AdvanceTo
This fixes a bug where the last Channel transmission can be truncated. |
1,799 | 05.12.2019 13:32:20 | 25,200 | 593fc4deb1e37a19319fadf813110a1bfcfd9c29 | Add tracing that might be helpful in diagnosing failures | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/TestBase.cs",
"new_path": "src/Nerdbank.Streams.Tests/TestBase.cs",
"diff": "@@ -23,21 +23,26 @@ public abstract class TestBase : IDisposable\nprotected static readonly TimeSpan UnexpectedTimeout = Debugger.IsAttached ? Timeout.Infin... | C# | MIT License | aarnott/nerdbank.streams | Add tracing that might be helpful in diagnosing failures |
1,799 | 09.12.2019 11:37:49 | 25,200 | 7ee578f0511f0ff9e247e714e617fd0f8e2aa96f | Document that `HalfDuplexStream` is actually a "simplex" Stream
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamChannelOptionsTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamChannelOptionsTests.cs",
"diff": "@@ -73,7 +73,7 @@ public class MultiplexingStreamChannelOptionsTests : TestBase\n}\n[Fact]\n- publ... | C# | MIT License | aarnott/nerdbank.streams | Document that `HalfDuplexStream` is actually a "simplex" Stream
Fixes #144 |
1,799 | 09.12.2019 11:43:16 | 25,200 | 9073cc0b09376a2df30e0fed41b45da04b782c4d | Add MonitoringStream.DidFlush event
Closes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MonitoringStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MonitoringStreamTests.cs",
"diff": "@@ -392,7 +392,10 @@ public class MonitoringStreamTests : TestBase\nvar mockedUnderlyingStream = new Mock<Stream>(MockBehavior.Str... | C# | MIT License | aarnott/nerdbank.streams | Add MonitoringStream.DidFlush event
Closes #131 |
1,799 | 12.12.2019 09:09:23 | 25,200 | f650a7a2fd20d1e426576c8b6e47c1b10c7172ed | Fix InvalidCastException thrown on empty sequences
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"diff": "@@ -183,6 +183,21 @@ public class SequenceTests : TestBase\nAssert.Throws<ArgumentOutOfRangeException>(() => seq.Advance(mem1.Length + 1));\n}\n+ ... | C# | MIT License | aarnott/nerdbank.streams | Fix InvalidCastException thrown on empty sequences
Fixes #151 |
1,799 | 13.12.2019 13:55:30 | 25,200 | 23063b83512b3478848e514075e01cafed279955 | Fix Sequence.AdvanceTo(default) so it simply no-ops
This is consistent with PipeReader.AdvanceTo behavior. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"diff": "@@ -195,7 +195,9 @@ public class SequenceTests : TestBase\npublic void AdvanceTo_DefaultSequencePosition()\n{\nusing var seq = new Sequence<byte>(... | C# | MIT License | aarnott/nerdbank.streams | Fix Sequence.AdvanceTo(default) so it simply no-ops
This is consistent with PipeReader.AdvanceTo behavior. |
1,799 | 13.12.2019 14:20:50 | 25,200 | 55cebc55d55a98d165dc6a7efe294a30150165f6 | Adapt to behavior of newer System.IO.Pipelines | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/StreamPipeReaderTestBase.cs",
"new_path": "src/Nerdbank.Streams.Tests/StreamPipeReaderTestBase.cs",
"diff": "@@ -171,8 +171,9 @@ public abstract class StreamPipeReaderTestBase : TestBase\n{\nvar stream = new MemoryStream();\nvar read... | C# | MIT License | aarnott/nerdbank.streams | Adapt to behavior of newer System.IO.Pipelines |
1,799 | 02.01.2020 13:17:54 | 25,200 | df3378a1e381dba45619da444685147eb2710cee | Fix nuget CI push step | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines/publish-deployables.yml",
"new_path": "azure-pipelines/publish-deployables.yml",
"diff": "@@ -7,7 +7,7 @@ steps:\ndisplayName: Push packages to CI feed\ninputs:\ncommand: push\n- packagesToPush: $(Pipeline.Workspace)/deployables-Windows/*.nupkg... | C# | MIT License | aarnott/nerdbank.streams | Fix nuget CI push step |
1,799 | 20.01.2020 17:52:53 | 25,200 | 078fa25bfa628c41fe531f45994b5ee93adeb3a1 | Add Flush to BufferTextWriter.Dispose method
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/BufferTextWriterTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/BufferTextWriterTests.cs",
"diff": "@@ -143,6 +143,15 @@ public class BufferTextWriterTests : TestBase\nAssert.Equal(DefaultEncodingNoPreamble.GetBytes(\"b\"), this.s... | C# | MIT License | aarnott/nerdbank.streams | Add Flush to BufferTextWriter.Dispose method
Fixes #157 |
1,799 | 07.02.2020 09:11:37 | 25,200 | f4ad3083272c64bde870f6a925c96f7e42838832 | Deprecate HalfDuplexStream and copy to new SimplexStream type
Fixes | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -9,7 +9,7 @@ Specialized .NET Stream classes\n## Features\n-1. [`HalfDuplexStream`](doc/HalfDuplexStream.md) is meant to allow two parties to communicate *one direction*.\n+1. [`SimplexStream`](doc/SimplexStream... | C# | MIT License | aarnott/nerdbank.streams | Deprecate HalfDuplexStream and copy to new SimplexStream type
Fixes #144 |
1,799 | 07.02.2020 15:48:37 | 25,200 | 357af99ebe90a7d9ff0dcdbbe61821b6577862a2 | Add Sequence<T>.AutoIncreaseMinimumSpanLength
Closes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MockMemoryPool`1.cs",
"new_path": "src/Nerdbank.Streams.Tests/MockMemoryPool`1.cs",
"diff": "@@ -9,8 +9,6 @@ using Xunit;\ninternal class MockMemoryPool<T> : MemoryPool<T>\n{\n- internal const int DefaultLength = 16;\n-\npublic overr... | C# | MIT License | aarnott/nerdbank.streams | Add Sequence<T>.AutoIncreaseMinimumSpanLength
Closes #146 |
1,799 | 08.02.2020 13:26:43 | 25,200 | fb0f765c2db84e1153ecc74cb98079759cebe3f0 | Add test for disposing of a PipeStream wrapped in an IDuplexPipe
This repros | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -982,18 +982,6 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\n}\n}\n- private static Task<T[]> WhenAll... | C# | MIT License | aarnott/nerdbank.streams | Add test for disposing of a PipeStream wrapped in an IDuplexPipe
This repros #162 |
1,799 | 08.02.2020 15:53:35 | 25,200 | a84bbe6677df037d7aeb9d23987e3aeb10bcd613 | Dispose Stream even when Stream.ReadAsync does not honor CancellationToken
`PipeStream.ReadAsync` does not honor `CancellationToken` on .NET Framework.
This change works around this limitation by calling `Stream.Dispose()` when we're sure that the UsePipe front-end user is done using it, which causes the ReadAsync call to complete.
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"new_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"diff": "@@ -73,56 +73,7 @@ namespace Nerdbank.Streams\n/// </remarks>\npublic static PipeReader UsePipeReader(this Stream stream, int sizeHint = 0, PipeOptions? pip... | C# | MIT License | aarnott/nerdbank.streams | Dispose Stream even when Stream.ReadAsync does not honor CancellationToken
`PipeStream.ReadAsync` does not honor `CancellationToken` on .NET Framework.
This change works around this limitation by calling `Stream.Dispose()` when we're sure that the UsePipe front-end user is done using it, which causes the ReadAsync call to complete.
Fixes #162 |
1,799 | 15.02.2020 17:03:08 | 25,200 | 13aac2862ab1809b0f909891c4d59cef5b95de51 | Fix SubstreamReader's header read | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/SubstreamReader.cs",
"new_path": "src/Nerdbank.Streams/SubstreamReader.cs",
"diff": "@@ -71,7 +71,7 @@ namespace Nerdbank.Streams\n{\nwhile (bytesRead < 4)\n{\n- int bytesJustRead = this.underlyingStream.Read(this.intBuffer, 0, 4 - bytesRe... | C# | MIT License | aarnott/nerdbank.streams | Fix SubstreamReader's header read |
1,799 | 24.02.2020 16:42:00 | 25,200 | a77dd5f8549cff80863b79de281d68c1905edab4 | Fix Sequence<T> to work for managed types T
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"diff": "@@ -469,6 +469,16 @@ public class SequenceTests : TestBase\nAssert.Equal(3, seq.AsReadOnlySequence.Length);\n}\n+ [Fact]\n+ public void SequenceOf... | C# | MIT License | aarnott/nerdbank.streams | Fix Sequence<T> to work for managed types T
Fixes #167 |
1,799 | 04.03.2020 21:40:18 | 25,200 | c7c2fcfa857bc0dd356f7d7da333bb5945f079a5 | Add release notes link to NuGet package | [
{
"change_type": "MODIFY",
"old_path": "src/Directory.Build.props",
"new_path": "src/Directory.Build.props",
"diff": "<AdditionalFiles Include=\"$(MSBuildThisFileDirectory)stylecop.json\" Link=\"stylecop.json\" />\n</ItemGroup>\n+ <Target Name=\"PrepareReleaseNotes\" BeforeTargets=\"GenerateNuspec\"... | C# | MIT License | aarnott/nerdbank.streams | Add release notes link to NuGet package |
1,799 | 13.02.2020 14:09:27 | 25,200 | 73f1b30e6d80acdffb43ed4dafd7eb5b0058e26d | Add test for backpressure | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -501,6 +501,55 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nAssert.Equal(sendBuffer, recvBuffer);\n}... | C# | MIT License | aarnott/nerdbank.streams | Add test for backpressure |
1,799 | 03.03.2020 18:05:35 | 25,200 | aa914717436119d6edb0858c4a26c38b0dc02af1 | Add support for examining large blocks of data
These blocks of data may far exceed the allowable window, but so long as the reader keeps 'examining' bytes without consuming them, it's considered legit.
This emulates the behavior of the Pipe class itself. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -565,6 +565,38 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nawait CompleteChannelsAsync(a, b, c, d);... | C# | MIT License | aarnott/nerdbank.streams | Add support for examining large blocks of data
These blocks of data may far exceed the allowable window, but so long as the reader keeps 'examining' bytes without consuming them, it's considered legit.
This emulates the behavior of the Pipe class itself. |
1,799 | 03.03.2020 21:00:12 | 25,200 | c9b41599a697349d48fc1fb8ca2fcf26a5a0d3f7 | Add backpressure ExistingPipe test | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -597,6 +597,49 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\nawait writeTask;\n}\n+ [Fact]\n+ public ... | C# | MIT License | aarnott/nerdbank.streams | Add backpressure ExistingPipe test |
1,799 | 20.03.2020 05:41:19 | 21,600 | 266e5dfb327b51258087f5a4da87c8aedf28b418 | Remove TODO that isn't necessary
We don't transmit till the channel is accepted, so we don't need to communicate the default window size with the remote party. | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"diff": "@@ -249,7 +249,6 @@ namespace Nerdbank.Streams\noptions = options ?? new Options();\n// Send the protocol magic number, and a random GUID to establi... | C# | MIT License | aarnott/nerdbank.streams | Remove TODO that isn't necessary
We don't transmit till the channel is accepted, so we don't need to communicate the default window size with the remote party. |
1,799 | 21.03.2020 11:24:48 | 21,600 | 6aaf29d538251b798640fc61b1b34c3636c6b222 | Bring back support for the 'v1' mxstream protocol | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -17,12 +17,14 @@ using Nerdbank.Streams;\nusing Xunit;\nusing Xunit.Abstractions;\n+#pragma warning disable SA1401 // Field... | C# | MIT License | aarnott/nerdbank.streams | Bring back support for the 'v1' mxstream protocol |
1,799 | 21.03.2020 11:59:46 | 21,600 | a6477733fcfe3d04cb67e46bc2d99cb1a92eeb96 | API touch-ups | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/MultiplexingStreamTests.cs",
"diff": "@@ -33,7 +33,7 @@ public class MultiplexingStreamTests : TestBase, IAsyncLifetime\n{\n}\n- protected virtual int MajorProtocol... | C# | MIT License | aarnott/nerdbank.streams | API touch-ups |
1,799 | 24.03.2020 16:31:17 | 21,600 | b168ca4d76d99ed637eb461301f8975ff381753f | Fix transmission of ContentProcessed messages after terminated messages | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.Channel.cs",
"diff": "@@ -794,6 +794,12 @@ namespace Nerdbank.Streams\nprivate void LocalContentExamined(long bytesExamined)\n{\n+ Requires.Range(bytesExa... | C# | MIT License | aarnott/nerdbank.streams | Fix transmission of ContentProcessed messages after terminated messages |
1,799 | 24.03.2020 19:28:33 | 21,600 | 37ef6bd93db975aa55ef6818e86b30d8c79490b6 | Document flow control | [
{
"change_type": "MODIFY",
"old_path": "doc/MultiplexingStream.md",
"new_path": "doc/MultiplexingStream.md",
"diff": "@@ -11,9 +11,17 @@ Given a bidirectional stream between two parties, both parties should start the\n```cs\nStream transportStream;\n-var multiplexor = MultiplexingStream.CreateAsync(... | C# | MIT License | aarnott/nerdbank.streams | Document flow control |
1,799 | 24.03.2020 21:05:35 | 21,600 | 8e5ce6c5c871cccca0b68bff93d04a626ed429b5 | Clear references that may be in structs from Sequence<T> | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"diff": "@@ -65,6 +65,16 @@ public class SequenceTests : TestBase\nAssert.False(weakReference.IsAlive);\n}\n+ [Fact]\n+ public void ArrayPool_ReleasesRefer... | C# | MIT License | aarnott/nerdbank.streams | Clear references that may be in structs from Sequence<T> |
1,799 | 24.03.2020 21:34:12 | 21,600 | 8e5caddefa966332e8dcd92812f03ca2826b6813 | Consistently complete with OCE on cancellation
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"new_path": "src/Nerdbank.Streams/PipeExtensions.cs",
"diff": "@@ -111,8 +111,9 @@ namespace Nerdbank.Streams\n{\ntry\n{\n- while (!cancellationToken.IsCancellationRequested)\n+ while (true)\n{\n+ cancellationToken.Thro... | C# | MIT License | aarnott/nerdbank.streams | Consistently complete with OCE on cancellation
Fixes #170 |
1,799 | 24.03.2020 22:10:57 | 21,600 | 2395495ea6444bf60023215c755816fba0ce72a0 | Fix TraceEventType for handshake started event | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"new_path": "src/Nerdbank.Streams/MultiplexingStream.cs",
"diff": "@@ -190,6 +190,11 @@ namespace Nerdbank.Streams\n/// Raised when we receive a <see cref=\"ControlCode.ContentProcessed\"/> message for an unknown or... | C# | MIT License | aarnott/nerdbank.streams | Fix TraceEventType for handshake started event |
1,799 | 26.03.2020 12:51:51 | 21,600 | 760275e17fee63d09433ce33629eb2b0a6f4d563 | Extend UnexpectedTimeout for tests | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/TestBase.cs",
"new_path": "src/Nerdbank.Streams.Tests/TestBase.cs",
"diff": "@@ -21,7 +21,7 @@ public abstract class TestBase : IDisposable\n{\nprotected static readonly TimeSpan ExpectedTimeout = TimeSpan.FromMilliseconds(200);\n- p... | C# | MIT License | aarnott/nerdbank.streams | Extend UnexpectedTimeout for tests |
1,799 | 27.03.2020 15:25:05 | 21,600 | 47f43dd780c45ac26c644756cb2e63d021635a95 | Collect dumps and sequence.xml files on test hangs and crashes | [
{
"change_type": "MODIFY",
"old_path": ".editorconfig",
"new_path": ".editorconfig",
"diff": "@@ -16,7 +16,7 @@ insert_final_newline = true\ntrim_trailing_whitespace = true\n# Xml project files\n-[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]\n+[*.{csproj,vbproj,vcxproj,vcxproj.fi... | C# | MIT License | aarnott/nerdbank.streams | Collect dumps and sequence.xml files on test hangs and crashes |
1,799 | 15.04.2020 14:43:06 | 21,600 | e7e99f7425738e46e0a4955c4163de6a25fa75c8 | Fix SequenceTextReader decoding of surrogate pairs at the buffer boundary
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/SequenceTextReader.cs",
"new_path": "src/Nerdbank.Streams/SequenceTextReader.cs",
"diff": "@@ -289,7 +289,9 @@ namespace Nerdbank.Streams\nthis.charBufferLength = 0;\n}\n- while (this.charBufferLength < this.charBuffer.Length)\n+ // Contin... | C# | MIT License | aarnott/nerdbank.streams | Fix SequenceTextReader decoding of surrogate pairs at the buffer boundary
Fixes #178 |
1,812 | 24.04.2020 08:07:45 | 14,400 | dea8addad5543e98c9c72d92099229e8ec1cadaf | Added note about System.Net.Sockets.Socket | [
{
"change_type": "MODIFY",
"old_path": "doc/UsePipe.md",
"new_path": "doc/UsePipe.md",
"diff": "@@ -11,3 +11,11 @@ and connect these transports with APIs that use these.\nUsing these APIs isn't automatically better than the classic `Stream.ReadAsync` and `Stream.WriteAsync` methods,\nbut can be very... | C# | MIT License | aarnott/nerdbank.streams | Added note about System.Net.Sockets.Socket |
1,799 | 16.04.2020 12:28:02 | 21,600 | 5959ffd1559085d56462a0c95c06b8c808e82e4c | Update dependencies of test projects | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines/artifacts/coverageResults.ps1",
"new_path": "azure-pipelines/artifacts/coverageResults.ps1",
"diff": "@@ -3,7 +3,7 @@ $RepoRoot = [System.IO.Path]::GetFullPath(\"$PSScriptRoot\\..\\..\")\n# Prepare code coverage reports for merging on another m... | C# | MIT License | aarnott/nerdbank.streams | Update dependencies of test projects |
1,799 | 16.04.2020 12:48:39 | 21,600 | 6a72ff2e50728a6038dec0a9f7d991a6f96be35d | Suppress new compiler warnings | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/DuplexPipeTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/DuplexPipeTests.cs",
"diff": "@@ -51,8 +51,10 @@ public class DuplexPipeTests\npipe.Writer.CancelPendingFlush();\nduplex.Output.CancelPendingFlush();\n+#pragma warning disa... | C# | MIT License | aarnott/nerdbank.streams | Suppress new compiler warnings |
1,799 | 24.04.2020 12:32:52 | 21,600 | 6808493956a3216f4588350077c7440e505e1900 | Add test to verify that `Sequence<T>.Reset()` doesn't throw
Repro for | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"new_path": "src/Nerdbank.Streams.Tests/SequenceTests.cs",
"diff": "@@ -45,6 +45,15 @@ public class SequenceTests : TestBase\nAssert.Throws<ArgumentOutOfRangeException>(() => seq.GetMemory(-1));\n}\n+ [Fact]\n+ pub... | C# | MIT License | aarnott/nerdbank.streams | Add test to verify that `Sequence<T>.Reset()` doesn't throw
Repro for #182 |
1,799 | 24.04.2020 12:33:20 | 21,600 | f585292fdfe345b00b40c4e338a54ef3f0d3d071 | Fix reference clearing in `Sequence<T>.Reset()`
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/Sequence`1.cs",
"new_path": "src/Nerdbank.Streams/Sequence`1.cs",
"diff": "@@ -373,7 +373,7 @@ namespace Nerdbank.Streams\n/// </summary>\ninternal void ResetMemory(ArrayPool<T> arrayPool)\n{\n- this.ClearReferences(this.Start, this.End);\... | C# | MIT License | aarnott/nerdbank.streams | Fix reference clearing in `Sequence<T>.Reset()`
Fixes #182 |
1,799 | 08.05.2020 10:18:07 | 21,600 | 5b776f15945c6b46025f3b8cf1493da0b3997c36 | Use AzP owned tasks for node and yarn | [
{
"change_type": "MODIFY",
"old_path": "azure-pipelines/node.yml",
"new_path": "azure-pipelines/node.yml",
"diff": "-parameters:\n- projectdirectory: ''\n-\nsteps:\n-- task: NodeTool@0\n+- task: UseNode@1\ndisplayName: Use Node 10.x\ninputs:\n- versionSpec: 10.x\n+ version: 10.x\n-- task: geeklearni... | C# | MIT License | aarnott/nerdbank.streams | Use AzP owned tasks for node and yarn |
1,799 | 09.05.2020 09:39:14 | 21,600 | 50a819758a5674befc669f718f4ee4283f01eaf6 | Close open channels from mxstream.dispose()
Fixes | [
{
"change_type": "MODIFY",
"old_path": "src/nerdbank-streams/src/MultiplexingStream.ts",
"new_path": "src/nerdbank-streams/src/MultiplexingStream.ts",
"diff": "@@ -326,6 +326,14 @@ export abstract class MultiplexingStream implements IDisposableObservable {\nthis.disposalTokenSource.cancel();\nthis._... | C# | MIT License | aarnott/nerdbank.streams | Close open channels from mxstream.dispose()
Fixes #184 |
1,799 | 25.06.2020 11:06:22 | 21,600 | edf78580fb6b5c5d986ac046701ee8a36e4ef85d | Fix up NRT annotations based on netcoreapp3.1 ref assemblies | [
{
"change_type": "MODIFY",
"old_path": "src/Nerdbank.Streams/BufferTextWriter.cs",
"new_path": "src/Nerdbank.Streams/BufferTextWriter.cs",
"diff": "@@ -93,7 +93,7 @@ namespace Nerdbank.Streams\n}\n/// <inheritdoc />\n- public override Encoding? Encoding => this.encoding;\n+ public override Encoding?... | C# | MIT License | aarnott/nerdbank.streams | Fix up NRT annotations based on netcoreapp3.1 ref assemblies |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.