Skip to content

Commit 91e29a9

Browse files
committed
add another error not to log
1 parent 4ac90ff commit 91e29a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/klite/ErrorHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ open class ErrorHandler {
3636
fun on(e: KClass<out Throwable>, statusCode: StatusCode) { statusCodes[e] = statusCode }
3737
inline fun <reified T: Throwable> on(statusCode: StatusCode) { on(T::class, statusCode) }
3838

39-
private val ioErrorsToSkip = setOf("Broken pipe", "Stream is closed", "Connection reset", "Operation timed out")
39+
private val ioErrorsToSkip = setOf("Broken pipe", "Stream is closed", "Connection reset", "Connection reset by peer", "Operation timed out")
4040

4141
fun handle(exchange: HttpExchange, e: Throwable) {
4242
exchange.failure = e

0 commit comments

Comments
 (0)