aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/workthreadpool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Support for asynchronous HTTP response processing (#19)Stefan Boberg2021-10-061-0/+77
This change introduces WriteResponseAsync which can be used to move potentially slow request handler code (like upstream lookups) off the I/O service thread to ensure we are always able to serve as many HTTP requests as possible. The current implementation defaults to 16 async worker threads and there is currently no back-pressure. - Added RequestStats - Metrics for network requests. Aggregates tracking of duration, payload sizes into a single class for ease of use - Added some metrics on upstream communication Co-authored-by: Per Larsson <[email protected]>