mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-21 20:01:46 +00:00
- A keep-alive timeout of 0 closed every new connection before its first request. The wait now has the same 10 ms floor as keep_alive(). - An established connection in the backlog could wait for an unrelated event although the queue had room. A worker woke the loop when it finished a job, before ThreadPool made room by taking the next one, and the loop announced the backlog only after the failed try. A worker now wakes the loop when it starts a job, the loop announces the backlog before a second try, and retries it every 10 ms while it is not empty, for task queues that make room later. - A new connection could take the room the backlog waited for. It is now turned away while the backlog is not empty. - A failed arm() of the listening socket stopped accepting for good, and one of a connection left it unwatched. The first is retried after 10 ms, the second closes the connection.