SSL connections are expensive, do not do them overly frequently

This commit is contained in:
John Sully 2022-04-12 18:56:11 +00:00 committed by John Sully
parent 2987bb62c7
commit 55dbb698e7

View File

@ -1239,6 +1239,7 @@ void clientAcceptHandler(connection *conn) {
}
#define MAX_ACCEPTS_PER_CALL 1000
#define MAX_ACCEPTS_PER_CALL_TLS 1
static void acceptCommonHandler(connection *conn, int flags, char *ip, int iel) {
client *c;
char conninfo[100];
@ -1386,7 +1387,7 @@ void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
}
void acceptTLSHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
int cport, cfd, max = MAX_ACCEPTS_PER_CALL;
int cport, cfd, max = MAX_ACCEPTS_PER_CALL_TLS;
char cip[NET_IP_STR_LEN];
UNUSED(el);
UNUSED(mask);