Alexey Yakovlev
06/25/2024, 4:44 AMPHASE_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 sureAleksei Tirman [JB]
06/25/2024, 8:18 AMAlexey Yakovlev
06/25/2024, 9:46 AMfun main() {
embeddedServer(Netty, port = 8082) {
install(createApplicationPlugin("MyPlugin") {
onCallRespond { call ->
error("oh nooooo")
}
})
routing {
get {
call.respondText("hello world")
}
}
}.start(wait = true)
}
request example
GET <http://127.0.0.1:8082>
Aleksei Tirman [JB]
06/25/2024, 12:46 PM