FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix SSL receive issues · commodus/NetCoreServer@b76146c · GitHub

Repository navigation

Commit b76146c

Browse files
committed
Fix SSL receive issues
1 parent ec3eb3e commit b76146c

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎.appveyor.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Specify version format
2-
version: "3.0.13.{build}"
2+
version: "3.0.14.{build}"
33

44
# Image to use
55
image: Visual Studio 2019

‎source/NetCoreServer/NetCoreServer.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5-
<Version>3.0.13</Version>
5+
<Version>3.0.14</Version>
66
<Authors>Ivan Shynkarenka</Authors>
77
<Copyright>Copyright (c) 2019-2020 Ivan Shynkarenka</Copyright>
88
<RepositoryUrl>https://github.com/chronoxor/NetCoreServer</RepositoryUrl>

‎source/NetCoreServer/SslClient.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,10 @@ private void ProcessReceive(IAsyncResult result)
803803

804804
// If zero is returned from a read operation, the remote end has closed the connection
805805
if (size > 0)
806-
TryReceive();
806+
{
807+
if (!result.CompletedSynchronously)
808+
TryReceive();
809+
}
807810
else
808811
DisconnectAsync();
809812
}

‎source/NetCoreServer/SslSession.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,10 @@ private void ProcessReceive(IAsyncResult result)
575575

576576
// If zero is returned from a read operation, the remote end has closed the connection
577577
if (size > 0)
578-
TryReceive();
578+
{
579+
if (!result.CompletedSynchronously)
580+
TryReceive();
581+
}
579582
else
580583
Disconnect();
581584
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL