mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Bump TCP connection backlog from 5 to 32.
This commit is contained in:
@@ -39,6 +39,11 @@ version 2.77
|
|||||||
For example --cname=*.example.com,default.example.com
|
For example --cname=*.example.com,default.example.com
|
||||||
Thanks to Pro Backup for sponsoring this development.
|
Thanks to Pro Backup for sponsoring this development.
|
||||||
|
|
||||||
|
Bump the allowed backlog of TCP connections from 5 to 32,
|
||||||
|
and make this a compile-time configurable option. Thanks
|
||||||
|
to Donatas Abraitis for diagnosing this as a potential
|
||||||
|
problem.
|
||||||
|
|
||||||
|
|
||||||
version 2.76
|
version 2.76
|
||||||
Include 0.0.0.0/8 in DNS rebind checks. This range
|
Include 0.0.0.0/8 in DNS rebind checks. This range
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#define MAX_PROCS 20 /* max no children for TCP requests */
|
#define MAX_PROCS 20 /* max no children for TCP requests */
|
||||||
#define CHILD_LIFETIME 150 /* secs 'till terminated (RFC1035 suggests > 120s) */
|
#define CHILD_LIFETIME 150 /* secs 'till terminated (RFC1035 suggests > 120s) */
|
||||||
#define TCP_MAX_QUERIES 100 /* Maximum number of queries per incoming TCP connection */
|
#define TCP_MAX_QUERIES 100 /* Maximum number of queries per incoming TCP connection */
|
||||||
|
#define TCP_BACKLOG 32 /* kernel backlog limit for TCP connections */
|
||||||
#define EDNS_PKTSZ 4096 /* default max EDNS.0 UDP packet from RFC5625 */
|
#define EDNS_PKTSZ 4096 /* default max EDNS.0 UDP packet from RFC5625 */
|
||||||
#define SAFE_PKTSZ 1280 /* "go anywhere" UDP packet size */
|
#define SAFE_PKTSZ 1280 /* "go anywhere" UDP packet size */
|
||||||
#define KEYBLOCK_LEN 40 /* choose to mininise fragmentation when storing DNSSEC keys */
|
#define KEYBLOCK_LEN 40 /* choose to mininise fragmentation when storing DNSSEC keys */
|
||||||
|
|||||||
@@ -746,7 +746,7 @@ static int make_sock(union mysockaddr *addr, int type, int dienow)
|
|||||||
|
|
||||||
if (type == SOCK_STREAM)
|
if (type == SOCK_STREAM)
|
||||||
{
|
{
|
||||||
if (listen(fd, 5) == -1)
|
if (listen(fd, TCP_BACKLOG) == -1)
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
else if (family == AF_INET)
|
else if (family == AF_INET)
|
||||||
|
|||||||
Reference in New Issue
Block a user