Skip to content

Commit

Permalink
ab: Fix crash with -W when exiting earlya on fatal error.
Browse files Browse the repository at this point in the history
When multiple threads are failing (e.g. read/write timeout) it's not
thread-safe to simply/concurrently print the stats and exit. This can
result in garbage being printed or a crash.

Let's cleanly shutdown the threads and do the printing at a single point.
For the places where we want to fail but threads are not started yet we
can simply exit still, so to simplify the stats are not printed in an
atexit() handler.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910513 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ylavic committed Jun 20, 2023
1 parent 3ed9d65 commit 2eb505f
Showing 1 changed file with 308 additions and 237 deletions.
Loading

0 comments on commit 2eb505f

Please sign in to comment.