We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac90ff commit 91e29a9Copy full SHA for 91e29a9
server/src/klite/ErrorHandler.kt
@@ -36,7 +36,7 @@ open class ErrorHandler {
36
fun on(e: KClass<out Throwable>, statusCode: StatusCode) { statusCodes[e] = statusCode }
37
inline fun <reified T: Throwable> on(statusCode: StatusCode) { on(T::class, statusCode) }
38
39
- private val ioErrorsToSkip = setOf("Broken pipe", "Stream is closed", "Connection reset", "Operation timed out")
+ private val ioErrorsToSkip = setOf("Broken pipe", "Stream is closed", "Connection reset", "Connection reset by peer", "Operation timed out")
40
41
fun handle(exchange: HttpExchange, e: Throwable) {
42
exchange.failure = e
0 commit comments