-/* $OpenBSD: extern.h,v 1.143 2022/06/27 10:18:27 job Exp $ */
+/* $OpenBSD: extern.h,v 1.144 2022/08/08 14:10:10 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
#define MAX_HTTP_REQUESTS 64
#define MAX_RSYNC_REQUESTS 16
+/* How many seconds to wait for a connection to succeed. */
+#define MAX_CONTIMEOUT 15
+
/* Maximum allowd repositories per tal */
#define MAX_REPO_PER_TAL 1000
-/* $OpenBSD: rsync.c,v 1.38 2022/05/24 09:20:49 claudio Exp $ */
+/* $OpenBSD: rsync.c,v 1.39 2022/08/08 14:10:10 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
args[i++] = "-rt";
args[i++] = "--no-motd";
args[i++] = "--max-size=" STRINGIFY(MAX_FILE_SIZE);
+ args[i++] = "--contimeout=" STRINGIFY(MAX_CONTIMEOUT);
args[i++] = "--timeout=180";
args[i++] = "--include=*/";
args[i++] = "--include=*.cer";