rocketraman
01/17/2024, 11:53 PMtls
function takes a coroutineContext
parameter (https://api.ktor.io/ktor-network/ktor-network-tls/io.ktor.network.tls/tls.html) -- what is the intended usage pattern for this? When the TLS handshake fails the exception is propagating up my coroutine tree as unhandled exceptions, even though I catch it in the child coroutine. Only passing an independent scope to socket.tls()
appears to prevent this propagation -- is that the recommended approach?rocketraman
01/18/2024, 2:13 AMrocketraman
01/22/2024, 3:41 PMe5l
01/23/2024, 8:32 AMcoroutineContext
will receive errors when there are no other handlers to process it (for instance in case of shutdown). You also can use it for the cancellation.
You rarely can use it as a child cause usually socket coroutine is not decomposition of your parent taskrocketraman
01/23/2024, 3:19 PMrocketraman
01/23/2024, 3:30 PMe5l
01/23/2024, 3:56 PM