Hi, I found interesting behaviour, if I throw an exception in
PHASE_ON_CALL_RESOIND
pipeline handler a.k.a
PluginBuilder.onCallRespond
Ktor does not proceed request which causes timeouts on client side. Could you please suggest why this behaviour is happening? This looks like a bug, but I’m not sure
a
Aleksei Tirman [JB]
06/25/2024, 8:18 AM
Can you share a code snippet to test the behavior?
a
Alexey Yakovlev
06/25/2024, 9:46 AM
main.kt
Copy code
fun main() {
embeddedServer(Netty, port = 8082) {
install(createApplicationPlugin("MyPlugin") {
onCallRespond { call ->
error("oh nooooo")
}
})
routing {
get {
call.respondText("hello world")
}
}
}.start(wait = true)
}