Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 7 of 7) sorted by relevance

/lighttpd1.4/src/
H A Dfdlog_maint.c164 fdlog_pipe_init (const char * const fn, const int fds[2], const pid_t pid) in fdlog_pipe_init()
170 fdp->fd = fds[0]; in fdlog_pipe_init()
173 return (fdp->fdlog = fdlog_init(fn, fds[1], FDLOG_PIPE)); in fdlog_pipe_init()
186 int fds[2]; in fdlog_pipe_open() local
187 if (fdevent_pipe_cloexec(fds, 65536)) in fdlog_pipe_open()
190 pid_t pid = fdlog_pipe_spawn(fn, fds[0]); in fdlog_pipe_open()
193 if (0 != fdevent_fcntl_set_nb(fds[1])) { /*(ignore)*/ } in fdlog_pipe_open()
194 return fdlog_pipe_init(fn, fds, pid); in fdlog_pipe_open()
198 close(fds[0]); in fdlog_pipe_open()
199 close(fds[1]); in fdlog_pipe_open()
H A Dfdevent.c220 int fdevent_pipe_cloexec (int * const fds, const unsigned int bufsz_hint) { in fdevent_pipe_cloexec() argument
222 return _pipe(fds, bufsz_hint, _O_BINARY | _O_NOINHERIT); in fdevent_pipe_cloexec()
225 if (0 != pipe2(fds, O_CLOEXEC)) in fdevent_pipe_cloexec()
228 if (0 != pipe(fds) in fdevent_pipe_cloexec()
230 || 0 != fcntl(fds[0], F_SETFD, FD_CLOEXEC) in fdevent_pipe_cloexec()
231 || 0 != fcntl(fds[1], F_SETFD, FD_CLOEXEC) in fdevent_pipe_cloexec()
238 if (0 != fcntl(fds[1], F_SETPIPE_SZ, bufsz_hint)) { } /*(ignore error)*/ in fdevent_pipe_cloexec()
H A Dconfigfile.c2290 int fds[2]; in config_parse_cmd() local
2306 if (fdevent_pipe_cloexec(fds, 65536)) { in config_parse_cmd()
2322 pid = fdevent_fork_execve(args[0], args, NULL, -1, fds[1], -1, -1); in config_parse_cmd()
2331 close(fds[1]); in config_parse_cmd()
2332 fds[1] = -1; in config_parse_cmd()
2334 rd = read(fds[0], buffer_string_prepare_append(out, 1023), 1023); in config_parse_cmd()
2341 close(fds[0]); in config_parse_cmd()
2342 fds[0] = -1; in config_parse_cmd()
2359 if (-1 != fds[0]) close(fds[0]); in config_parse_cmd()
2360 if (-1 != fds[1]) close(fds[1]); in config_parse_cmd()
H A Dfdevent.h88 int fdevent_pipe_cloexec (int *fds, unsigned int bufsz_hint);
/lighttpd1.4/doc/config/
H A Dlighttpd.conf209 server.max-fds = 16384
/lighttpd1.4/doc/outdated/
H A Dperformance.txt167 * test with server.max-fds = 16384 (or higher) and OS system and/or per-user
169 For each 4k increase in server.max-fds, lighttpd uses an additional ~100 kb
173 server.max-connections is calculated to be 1/3 of server.max-fds if
180 * test with server.max-fds = 128 (or lower)
/lighttpd1.4/
H A DNEWS39 * [core] avoid select() FD_ISSET repeat on active fds
392 * [core] use lower limit for max-fds if !setrlimit
474 * [core] close backend socket fds more quickly
2252 * [core] open additional fds O_CLOEXEC
2361 * [core] issue trace if max-fds too large (fixes #2789)
2374 * [core] default server.max-fds=4096 if unspecified (#2789)
2550 * [core] handle fds pending close after poll timeout (fixes #2827)
2818 * [core] setrlimit max-fds <= rlim_max for non-root (fixes #2723)
3138 …* Fix fd leaks in mod_cgi (fds not closed on pipe/fork failures, found by Rodrigo, fixes #2158, #2…
3677 * added FD_CLOEXEC to fds which are kept open for a longer time
[all …]