Skip to content

Commit f357307

Browse files
committed
Update catching the "connection" reset exceptions
1 parent 0a3abb0 commit f357307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/Kotlin/vertx-web-kotlinx/src/main/kotlin/MainVerticle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class MainVerticle(val hasDb: Boolean) : CoroutineVerticle(), CoroutineRouterSup
7676
/*(it is NativeIoException && it.message == "recvAddress(..) failed: Connection reset by peer")
7777
|| (it is SocketException && it.message == "Connection reset")*/
7878
// for io_uring
79-
it is NativeIoException && it.message == "io_uring read(..) failed: Connection reset by peer"
79+
it is NativeIoException && it.expectedErr() == -104
8080
)
8181
return@exceptionHandler
8282

0 commit comments

Comments
 (0)