https://kotlinlang.org logo
#ktor
Title
# ktor
s

simon.vergauwen

03/21/2022, 3:13 PM
Is this expecting behavior in Ktor (1.6.8)? I expected something similar to happen in both implementations, I definitely didn't expect it to crash the Ktor Server since Ktor Application's
CoroutineScope
is a
SupervisorJob
. And a
async
without an
await
is now crashing the server due to a child
CoroutineScope
of the Application
SupervisorJob
🤔 Adding
await
in
notFine
also doesn't change the behavior. It's hard to find more documentation around this, I looked around the codebase but had a hard time locating where
execute
is being called. Probably somewhere in the integration code with Netty, or other runtimes.
e

e5l

03/21/2022, 3:14 PM
Hey @simon.vergauwen, it shouldn’t work and also shouldn’t crash. Could you log an issue? I will take a look.
👍 1
s

simon.vergauwen

03/21/2022, 3:31 PM
Where is most convenient? On YouTrack or on the Ktor Github? Would it be useful to link a reproducing repo, or is a code example sufficient?
I can also test this against 2.x.x if that'd belp.
e

e5l

03/21/2022, 3:31 PM
YT. It would be great
s

simon.vergauwen

03/21/2022, 3:32 PM
Going to make an issue, and I'll link it here 👍
🙏 1
3 Views