We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4116544 + 92a5578 commit edf0c4fCopy full SHA for edf0c4f
io/src/main/scala/fs2/io/tls/TLSEngine.scala
@@ -218,10 +218,7 @@ private[tls] object TLSEngine {
218
else
219
binding.read(engine.getSession.getPacketBufferSize, timeout).flatMap {
220
case Some(c) => unwrapBuffer.input(c) >> unwrapHandshake(timeout)
221
- case None =>
222
- unwrapBuffer.inputRemains.flatMap(x =>
223
- if (x > 0) Applicative[F].unit else stopUnwrap
224
- )
+ case None => stopUnwrap
225
}
226
227
case SSLEngineResult.HandshakeStatus.NEED_UNWRAP_AGAIN =>
0 commit comments