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 in37bbf6ade4
(see #164), so make all exceptions fatal again. This reverts commit02810309fc
.
This commit is contained in:
parent
37bbf6ade4
commit
bb087b72ee
@ -172,5 +172,7 @@ kj::Promise<void> Server::handleFdRead(kj::AsyncInputStream* stream, char* buffe
|
||||
|
||||
void Server::taskFailed(kj::Exception &&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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user