Add --max-tcp-connections option to make this dynamically configurable.

This commit is contained in:
Damian Sawicki authored and Simon Kelley committed 2023-11-04 23:33:28 +00:00
1 parent 24804b7431
commit 416390f996
5 files changed
+39 -11

No files matched your search

+3 -2
View File
@@ -1252,8 +1252,8 @@ extern struct daemon {
struct server *srv_save; /* Used for resend on DoD */
size_t packet_len; /* " " */
int fd_save; /* " " */
pid_t tcp_pids[MAX_PROCS];
int tcp_pipes[MAX_PROCS];
pid_t *tcp_pids;
int *tcp_pipes;
int pipe_to_parent;
int numrrand;
struct randfd *randomsocks;
@@ -1313,6 +1313,7 @@ extern struct daemon {
/* file for packet dumps. */
int dumpfd;
#endif
int max_procs;
} *daemon;
struct server_details {