From: Guus Sliepen Date: Thu, 17 May 2007 19:52:12 +0000 (+0000) Subject: 128 listener sockets is way too much. X-Git-Tag: release-1.1pre1~192 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=17c8033029d50ce4a30b6e3585c0ee28ef45bc97;p=tinc 128 listener sockets is way too much. --- diff --git a/src/net.h b/src/net.h index d66a1c7a..9082d8b9 100644 --- a/src/net.h +++ b/src/net.h @@ -37,7 +37,7 @@ #define MAXSIZE (MTU + 4 + EVP_MAX_BLOCK_LENGTH + EVP_MAX_MD_SIZE + MTU/64 + 20) /* MTU + seqno + padding + HMAC + compressor overhead */ #define MAXBUFSIZE ((MAXSIZE > 2048 ? MAXSIZE : 2048) + 128) /* Enough room for a request with a MAXSIZEd packet or a 8192 bits RSA key */ -#define MAXSOCKETS 128 /* Overkill... */ +#define MAXSOCKETS 8 /* Probably overkill... */ #define MAXQUEUELENGTH 8 /* Maximum number of packats in a single queue */