mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fds max test before start.
git-svn-id: file:///svn/unbound/trunk@1156 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
4e2ca85842
commit
8ab18cb0f7
2 changed files with 17 additions and 0 deletions
|
|
@ -141,6 +141,21 @@ checkrlimits(struct config_file* cfg)
|
||||||
log_warn("increased limit(open files) from %u to %u",
|
log_warn("increased limit(open files) from %u to %u",
|
||||||
(unsigned)avail, (unsigned)total+10);
|
(unsigned)avail, (unsigned)total+10);
|
||||||
}
|
}
|
||||||
|
if(total > 1024 &&
|
||||||
|
strncmp(event_get_version(), "mini-event", 10) == 0) {
|
||||||
|
log_err("too many file descriptors requested. The builtin"
|
||||||
|
"mini-event cannot handle more than 1024. Config "
|
||||||
|
"for less fds or compile with libevent");
|
||||||
|
fatal_exit("configuration needs too many file descriptors");
|
||||||
|
}
|
||||||
|
if(perthread > 64 &&
|
||||||
|
strncmp(event_get_version(), "winsock-event", 13) == 0) {
|
||||||
|
log_err("too many file descriptors requested. The winsock"
|
||||||
|
" event handler cannot handle more than 64 per "
|
||||||
|
" thread. Config for less fds or compile with "
|
||||||
|
" libevent");
|
||||||
|
fatal_exit("configuration needs too many file descriptors");
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
(void)cfg;
|
(void)cfg;
|
||||||
#endif /* HAVE_GETRLIMIT */
|
#endif /* HAVE_GETRLIMIT */
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
17 July 2008: Wouter
|
17 July 2008: Wouter
|
||||||
- fix bug #196, compile outside source tree.
|
- fix bug #196, compile outside source tree.
|
||||||
- fix bug #195, add --with-username=user configure option.
|
- fix bug #195, add --with-username=user configure option.
|
||||||
|
- print error and exit if started with config that requires more
|
||||||
|
fds than the builtin minievent can handle.
|
||||||
|
|
||||||
16 July 2008: Wouter
|
16 July 2008: Wouter
|
||||||
- made svn tag 1.0.1, trunk now 1.0.2
|
- made svn tag 1.0.1, trunk now 1.0.2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue