diff options
author | Determinant <[email protected]> | 2019-07-01 23:35:17 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-07-01 23:35:17 -0400 |
commit | 53f776997d0e92650b9f3a16224cef1c0c76b716 (patch) | |
tree | de7c0a20dd4ba1d4bc5ea229e723ab8608ed94af /src/conn.cpp | |
parent | 85b9affbce70ac4b5922158802b227a42c42a203 (diff) |
add async id for error handling
Diffstat (limited to 'src/conn.cpp')
-rw-r--r-- | src/conn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conn.cpp b/src/conn.cpp index abea7ac..13486ee 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -303,7 +303,7 @@ void ConnPool::accept_client(int fd, int) { conn->worker = &worker; worker.feed(conn, client_fd); } - } catch (...) { recoverable_error(std::current_exception()); } + } catch (...) { recoverable_error(std::current_exception(), -1); } } void ConnPool::conn_server(const conn_t &conn, int fd, int events) { @@ -324,7 +324,7 @@ void ConnPool::conn_server(const conn_t &conn, int fd, int events) { } } catch (...) { disp_terminate(conn); - recoverable_error(std::current_exception()); + recoverable_error(std::current_exception(), -1); } } |