Date: Mon, 29 Jun 2026 15:54:19 +0000 From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 15ee1fc07457 - main - Revert "libfetch: Document fetchTimeout" Message-ID: <6a42952b.3ac57.153dd55f@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=15ee1fc07457b5fb7e1b027d18afc4ffc9aa56b2 commit 15ee1fc07457b5fb7e1b027d18afc4ffc9aa56b2 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2026-06-29 15:53:54 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2026-06-29 15:53:54 +0000 Revert "libfetch: Document fetchTimeout" This reverts commit c83e9ee0ef3e6af982e6fd35afe420d460fa84b3. --- lib/libfetch/fetch.3 | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/lib/libfetch/fetch.3 b/lib/libfetch/fetch.3 index f76df3b027bd..20a22a263b5b 100644 --- a/lib/libfetch/fetch.3 +++ b/lib/libfetch/fetch.3 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 27, 2026 +.Dd January 22, 2026 .Dt FETCH 3 .Os .Sh NAME @@ -56,8 +56,7 @@ .Nm fetchGetFTP , .Nm fetchPutFTP , .Nm fetchStatFTP , -.Nm fetchListFTP , -.Nm fetchTimeout +.Nm fetchListFTP .Nd file transfer functions .Sh LIBRARY .Lb libfetch @@ -65,7 +64,6 @@ .In sys/param.h .In stdio.h .In fetch.h -.Vt extern int fetchTimeout; .Ft struct url * .Fn fetchMakeURL "const char *scheme" "const char *host" "int port" "const char *doc" "const char *user" "const char *pwd" .Ft struct url * @@ -291,18 +289,6 @@ or functions is read-only, and that a stream returned by one of the .Fn fetchPutXXX functions is write-only. -.Pp -The -.Va fetchTimeout -global variable can be set to the amount of time in seconds to wait -for each network operation, including each connection attempt (keeping -in mind that one name may resolve to multiple addresses which will -each be tried sequentially), each read, and each write. -Thus, -.Va fetchTimeout -can safely be set to a relatively low value without fear of -prematurely terminating a long transfer; it will only kick in if the -transfer is stalled. .Sh FILE SCHEME .Fn fetchXGetFile , .Fn fetchGetFilehome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a42952b.3ac57.153dd55f>
