Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
0cf47b5a
Commit
0cf47b5a
authored
Feb 06, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce close-margin over highest known filedescriptor.
Fixes: #2844
parent
2ce13cf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+4
-6
No files found.
bin/varnishd/mgt/mgt_child.c
View file @
0cf47b5a
...
...
@@ -180,18 +180,16 @@ mch_cli_panic_clear(struct cli *cli, const char * const *av, void *priv)
*
* This is likely to a bit on the low side, as libc and other libraries
* has a tendency to cache file descriptors (syslog, resolver, etc.)
* so we add a margin of 10
0
fds.
* so we add a margin of 10 fds.
*
*
f
or added safety, we check that we see no file descriptor open for
*
F
or added safety, we check that we see no file descriptor open for
* another margin above the limit for which we close by design
*/
static
int
mgt_max_fd
;
#define CLOSE_FD_UP_TO (mgt_max_fd + 100)
// XXX should work now - engage?
//#define CLOSE_FD_UP_TO mgt_max_fd
#define CHECK_FD_UP_TO (CLOSE_FD_UP_TO + 100)
#define CLOSE_FD_UP_TO (mgt_max_fd + 10)
#define CHECK_FD_UP_TO (CLOSE_FD_UP_TO + 10)
void
MCH_TrackHighFd
(
int
fd
)
...
...
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