I have an endpoint in ktor performing a long calculation. Is there any way to interrupt it in case the client connection is closed? I've tried a simple route test with a loop and delays and the coroutine is not cancelled if the client closes.
c
cy
12/18/2019, 1:49 PM
Generally, no. It is possible in very few cases and it is quite unreliable
j
Jose A.
12/18/2019, 2:00 PM
Thanks! After reading ktor code that was my impression but I wanted to confirm it.