1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

Revert "make taskFailed non-fatal"

Originally reverted to prevent a crash when reading from an http
client raised ECONNRESET. Although this prevented a crash, laminar
stopped listening for http connections. That issue was resolved in
37bbf6ade4 (see #164), so make all exceptions fatal again.

This reverts commit 02810309fc.
This commit is contained in:
Oliver Giles 2021-11-09 09:21:19 +13:00
parent 37bbf6ade4
commit bb087b72ee

View File

@ -172,5 +172,7 @@ kj::Promise<void> Server::handleFdRead(kj::AsyncInputStream* stream, char* buffe
void Server::taskFailed(kj::Exception &&exception) { void Server::taskFailed(kj::Exception &&exception) {
//kj::throwFatalException(kj::mv(exception)); //kj::throwFatalException(kj::mv(exception));
fprintf(stderr, "taskFailed: %s\n", exception.getDescription().cStr()); // prettier
fprintf(stderr, "fatal: %s\n", exception.getDescription().cStr());
exit(EXIT_FAILURE);
} }