Loop pulling plain text from TLS

There might be more data to read.

Fixes #71, #73
This commit is contained in:
Davide De Rosa 2019-04-16 23:53:51 +02:00
parent 88cd62064a
commit 6fd6d228bf

View File

@ -854,8 +854,10 @@ public class SessionProxy {
}
do {
let controlData = try controlChannel.currentControlData(withTLS: negotiationKey.tls)
handleControlData(controlData)
while true {
let controlData = try controlChannel.currentControlData(withTLS: negotiationKey.tls)
handleControlData(controlData)
}
} catch _ {
}
}