From 02810309fcfe09f1b4eb283625d656260d0690ef Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Mon, 3 May 2021 09:18:06 +1200 Subject: [PATCH] make taskFailed non-fatal turns out we can end up here when an http client unexpectedly drops the connection, so it must not cause an exit() --- src/server.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index df77b3f..7b0cbb7 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -157,7 +157,5 @@ kj::Promise Server::handleFdRead(kj::AsyncInputStream* stream, char* buffe void Server::taskFailed(kj::Exception &&exception) { //kj::throwFatalException(kj::mv(exception)); - // prettier - fprintf(stderr, "fatal: %s\n", exception.getDescription().cStr()); - exit(EXIT_FAILURE); + fprintf(stderr, "taskFailed: %s\n", exception.getDescription().cStr()); }