From 71ea076197410f7f1043762931b67338055a139e Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 17 Apr 2023 15:39:04 +0300 Subject: fetch: enable --timeout to set network progress timeout implement it also for connecting to hosts fixes #10869 --- libfetch/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libfetch/ftp.c') diff --git a/libfetch/ftp.c b/libfetch/ftp.c index 77790aa..14323dc 100644 --- a/libfetch/ftp.c +++ b/libfetch/ftp.c @@ -692,7 +692,7 @@ ftp_transfer(conn_t *conn, const char *oper, const char *file, const char *op_ar retry_mode: /* open data socket */ - if ((sd = socket(u.ss.ss_family, SOCK_STREAM, IPPROTO_TCP)) == -1) { + if ((sd = socket(u.ss.ss_family, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP)) == -1) { fetch_syserr(); return (NULL); } -- cgit v1.2.3-60-g2f50