]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
HTTP: Patch CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 17 Sep 2021 18:35:59 +0000 (13:35 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 17 Sep 2021 19:48:29 +0000 (14:48 -0500)
commita28c2cc6d01772ce9faf61332fd97b1f2965e29d
treeebcf066683f456ce372baebdbf55f6e8fe60c705
parent274dc14aed1eb9b3350029d1063578a6b9c77b54
HTTP: Patch CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME

Likely due to some misunderstanding, Fort was managing both of these
variables using one command-line argument (--http.idle-timeout). This
unnecessarily limited the configurability of minimum transfer speeds for
HTTP connections.

--http.idle-timeout is now deprecated, and has been replaced by
--http.low-speed-limit and --http.low-speed-time, which correlate
verbatim to the corresponding curl arguments (CURLOPT_LOW_SPEED_LIMIT
and CURLOPT_LOW_SPEED_TIME).

Thanks to Koen van Hove for reporting this.
docs/usage.md
src/config.c
src/config.h
src/http/http.c