Commit 30f2798
daemon: fix type of
The `max_connections` type tracks how many children git-daemon(1) would
spawn at the same time. This value can be controlled via a command line
switch: if given a positive value we'll set that up as the limit. But
when given either zero or a negative value we don't enforce any limit at
all.
But even when being passed a negative value we won't actually store it,
but normalize it to 0. Still, the variable used to store the config is
using a signed integer, which causes warnings when comparing the number
of accepted connections (`max_connections`) with the number of current
connections being handled (`live_children`).
Adapt the type of `max_connections` such that the types of both
variables match.
Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>max_connections
1 parent 32c3b06 commit 30f2798
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
801 | 800 | | |
802 | 801 | | |
803 | 802 | | |
804 | | - | |
805 | | - | |
| 803 | + | |
806 | 804 | | |
807 | 805 | | |
808 | 806 | | |
| |||
1315 | 1313 | | |
1316 | 1314 | | |
1317 | 1315 | | |
1318 | | - | |
| 1316 | + | |
| 1317 | + | |
1319 | 1318 | | |
1320 | | - | |
1321 | | - | |
| 1319 | + | |
| 1320 | + | |
1322 | 1321 | | |
1323 | 1322 | | |
1324 | 1323 | | |
| |||
0 commit comments