David Glasser
09/04/2019, 5:12 PMcy
09/05/2019, 9:16 AMChannelWriteException
is thrown during response transmission so you can potentially try to catch it. When it is uncaught, the whole request coroutine scope is canceled. So the most reliable I’d say, is to handle cancellation. Notice that sometimes connection loss detection may take long time due to TCP nature.