Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
09b768ef
Commit
09b768ef
authored
Dec 22, 2016
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump TCP connection backlog from 5 to 32.
parent
a1d973f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
CHANGELOG
CHANGELOG
+5
-0
src/config.h
src/config.h
+1
-0
src/network.c
src/network.c
+1
-1
No files found.
CHANGELOG
View file @
09b768ef
...
...
@@ -39,6 +39,11 @@ version 2.77
For example --cname=*.example.com,default.example.com
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
Include 0.0.0.0/8 in DNS rebind checks. This range
...
...
src/config.h
View file @
09b768ef
...
...
@@ -18,6 +18,7 @@
#define MAX_PROCS 20
/* max no children for TCP requests */
#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_BACKLOG 32
/* kernel backlog limit for TCP connections */
#define EDNS_PKTSZ 4096
/* default max EDNS.0 UDP packet from RFC5625 */
#define SAFE_PKTSZ 1280
/* "go anywhere" UDP packet size */
#define KEYBLOCK_LEN 40
/* choose to mininise fragmentation when storing DNSSEC keys */
...
...
src/network.c
View file @
09b768ef
...
...
@@ -746,7 +746,7 @@ static int make_sock(union mysockaddr *addr, int type, int dienow)
if
(
type
==
SOCK_STREAM
)
{
if
(
listen
(
fd
,
5
)
==
-
1
)
if
(
listen
(
fd
,
TCP_BACKLOG
)
==
-
1
)
goto
err
;
}
else
if
(
family
==
AF_INET
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment