| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # Specify version format | |
| 2 | - version: "3.0.13.{build}" | ||
| 2 | + version: "3.0.14.{build}" | ||
| 3 | 3 | ||
| 4 | 4 | # Image to use | |
| 5 | 5 | image: Visual Studio 2019 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | <PropertyGroup> | |
| 4 | 4 | <TargetFramework>netstandard2.1</TargetFramework> | |
| 5 | - <Version>3.0.13</Version> | ||
| 5 | + <Version>3.0.14</Version> | ||
| 6 | 6 | <Authors>Ivan Shynkarenka</Authors> | |
| 7 | 7 | <Copyright>Copyright (c) 2019-2020 Ivan Shynkarenka</Copyright> | |
| 8 | 8 | <RepositoryUrl>https://github.com/chronoxor/NetCoreServer</RepositoryUrl> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -803,7 +803,10 @@ private void ProcessReceive(IAsyncResult result) | |||
| 803 | 803 | ||
| 804 | 804 | // If zero is returned from a read operation, the remote end has closed the connection | |
| 805 | 805 | if (size > 0) | |
| 806 | - TryReceive(); | ||
| 806 | + { | ||
| 807 | + if (!result.CompletedSynchronously) | ||
| 808 | + TryReceive(); | ||
| 809 | + } | ||
| 807 | 810 | else | |
| 808 | 811 | DisconnectAsync(); | |
| 809 | 812 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -575,7 +575,10 @@ private void ProcessReceive(IAsyncResult result) | |||
| 575 | 575 | ||
| 576 | 576 | // If zero is returned from a read operation, the remote end has closed the connection | |
| 577 | 577 | if (size > 0) | |
| 578 | - TryReceive(); | ||
| 578 | + { | ||
| 579 | + if (!result.CompletedSynchronously) | ||
| 580 | + TryReceive(); | ||
| 581 | + } | ||
| 579 | 582 | else | |
| 580 | 583 | Disconnect(); | |
| 581 | 584 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments