Commit 3586d5e
committed
Fix phpGH-18956: PHP-FPM Process Count Inconsistencies
This fixes extra increments on keep alive that happen for follow up
request in headers reading stage. It is because the accepting stage
is only done on the first request. It adds a new flag to the on_read
fastcgi callback that sets whether the kept alive request is being
done and then skips the further active increments.
It might still leave issues with incorrect decrement of the active
number of processes. This is done in accepting stage before incrementing
which might still be problematic if there are already some running
processes as it decrements their number first and result in incorrect
total (lower than the actual number).
Closes phpGH-191911 parent 8fe7930 commit 3586d5e
File tree
4 files changed
+18
-9
lines changed- main
- sapi/fpm/fpm
4 files changed
+18
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
877 | | - | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
878 | 882 | | |
879 | 883 | | |
880 | 884 | | |
| |||
897 | 901 | | |
898 | 902 | | |
899 | 903 | | |
900 | | - | |
| 904 | + | |
901 | 905 | | |
902 | 906 | | |
903 | 907 | | |
| |||
1364 | 1368 | | |
1365 | 1369 | | |
1366 | 1370 | | |
| 1371 | + | |
1367 | 1372 | | |
1368 | 1373 | | |
1369 | 1374 | | |
| |||
1372 | 1377 | | |
1373 | 1378 | | |
1374 | 1379 | | |
| 1380 | + | |
1375 | 1381 | | |
1376 | 1382 | | |
1377 | 1383 | | |
| |||
1479 | 1485 | | |
1480 | 1486 | | |
1481 | 1487 | | |
1482 | | - | |
| 1488 | + | |
| 1489 | + | |
1483 | 1490 | | |
1484 | 1491 | | |
1485 | 1492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments