diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-05-24 09:20:50 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-05-24 09:20:50 +0000 |
commit | 35a6361e5b34b35287582097508bd3ffecedbe46 (patch) | |
tree | 030c63499dac38dbb92af35e20fb244a49a1e712 /usr.sbin/rpki-client/http.c | |
parent | fe7fbd30801e744e82725051be73791146bfd58f (diff) |
Introduce MAX_HTTP_REQUESTS and MAX_RSYNC_REQUESTS.
These just replace MAX_CONNECTIONS and MAX_RSYNC_PROCESSES to be more unified.
OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/http.c')
-rw-r--r-- | usr.sbin/rpki-client/http.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c index fa8d1be6672..fa230e86d3e 100644 --- a/usr.sbin/rpki-client/http.c +++ b/usr.sbin/rpki-client/http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http.c,v 1.60 2022/05/15 16:43:34 tb Exp $ */ +/* $OpenBSD: http.c,v 1.61 2022/05/24 09:20:49 claudio Exp $ */ /* * Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com> * Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org> @@ -71,9 +71,8 @@ #define HTTP_BUF_SIZE (32 * 1024) #define HTTP_IDLE_TIMEOUT 10 #define HTTP_IO_TIMEOUT (3 * 60) -#define MAX_CONNECTIONS 64 #define MAX_CONTENTLEN (2 * 1024 * 1024 * 1024LL) -#define NPFDS (MAX_CONNECTIONS + 1) +#define NPFDS (MAX_HTTP_REQUESTS + 1) enum res { DONE, @@ -620,7 +619,7 @@ http_req_schedule(struct http_request *req) return 1; } - if (http_conn_count < MAX_CONNECTIONS) { + if (http_conn_count < MAX_HTTP_REQUESTS) { http_new(req); return 1; } |