Hi guys, KTOR doesn't seem to offer an option to d...
# ktor
c
Hi guys, KTOR doesn't seem to offer an option to do something specific if the netty responseWriteTimeoutSeconds or requestReadTimeoutSeconds trigger. Basically it's closing the connection without reporting any error to the browser. Is there a way to enforce a different closure or at least send an HTTP response with error code? You can reproduce this just by sleeping in request for more than the default time of those timeouts. I want to return 408 Request Timeout and not closing the connection abruptly, doesn't make sense, does it?
­čĹŹ 2
Maybe with a writeTimeoutHandler it's possible