File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
io/src/main/scala/fs2/io/tls Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,12 @@ private[tls] object TLSEngine {
130
130
// Check if the initial handshake has finished -- if so, read; otherwise, handshake and then read
131
131
dequeueUnwrap(maxBytes).flatMap { out =>
132
132
if (out.isEmpty)
133
- initialHandshakeDone.ifM(read1(maxBytes, timeout),
133
+ initialHandshakeDone.ifM(
134
+ read1(maxBytes, timeout),
134
135
write(Chunk .empty, None ) >> dequeueUnwrap(maxBytes).flatMap { out =>
135
136
if (out.isEmpty) read1(maxBytes, timeout) else Applicative [F ].pure(out)
136
- })
137
+ }
138
+ )
137
139
else Applicative [F ].pure(out)
138
140
}
139
141
@@ -209,7 +211,10 @@ private[tls] object TLSEngine {
209
211
else
210
212
binding.read(engine.getSession.getPacketBufferSize, timeout).flatMap {
211
213
case Some (c) => unwrapBuffer.input(c) >> unwrapHandshake(timeout)
212
- case None => unwrapBuffer.inputRemains.flatMap(x => if (x > 0 ) Applicative [F ].unit else stopUnwrap)
214
+ case None =>
215
+ unwrapBuffer.inputRemains.flatMap(x =>
216
+ if (x > 0 ) Applicative [F ].unit else stopUnwrap
217
+ )
213
218
}
214
219
}
215
220
case SSLEngineResult .HandshakeStatus .NEED_UNWRAP_AGAIN =>
You can’t perform that action at this time.
0 commit comments