mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-21 20:01:46 +00:00
Say what handing a parked connection over costs
This commit is contained in:
1 parent
0289c0f528
commit
76e1a9c4c9
3 files changed
+3
-3
No files matched your search
@@ -65,7 +65,7 @@ With keep-alive parking, a connection waiting for its next request is handed to
|
||||
What changes with it:
|
||||
|
||||
- Consecutive requests on one connection may run on different threads, so don't keep per-connection state in `thread_local` variables.
|
||||
- With no more connections than threads and very light handlers, handing the connection over can lower the requests served per second.
|
||||
- Handing the connection over to a worker adds roughly 10-20 µs to each request. It only shows with very light handlers and a client as near as loopback.
|
||||
- A handler, a content provider and a WebSocket still hold their thread while they run.
|
||||
|
||||
The full list is in the [README](https://github.com/yhirose/cpp-httplib/blob/master/README.md#keep-alive-parking).
|
||||
|
||||
Reference in new issue
Block a user