We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18fbb08 commit 4a5b846Copy full SHA for 4a5b846
1 file changed
src/DotNetty.Handlers/Tls/TlsHandler.cs
@@ -506,6 +506,13 @@ void Unwrap(
506
}
507
508
int read = currentReadFuture.Result;
509
+
510
+ if (read == 0)
511
+ {
512
+ //Stream closed
513
+ return;
514
+ }
515
516
AddBufferToOutput(outputBuffer, read, output);
517
518
@@ -763,4 +770,4 @@ static class TlsHandlerStateExtensions
763
770
764
771
public static bool HasAny(this TlsHandlerState value, TlsHandlerState testValue) => (value & testValue) != 0;
765
772
766
-}
773
+}
0 commit comments