Klaus Demo nginx / d4a71fb
move listen log copying from ngx_open_listening_sockets() to ngx_configure_listening_sockets(), otherwise listen socket logs have no file after first reload and this caused segfault if debug_connection was used; the bug has been introduced in r2786 Igor Sysoev 13 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
201201 continue;
202202 }
203203
204 ls[i].log = *ls[i].logp;
205
206204 if (ls[i].inherited) {
207205
208206 /* TODO: close on exit */
355353
356354 ls = cycle->listening.elts;
357355 for (i = 0; i < cycle->listening.nelts; i++) {
356
357 ls[i].log = *ls[i].logp;
358358
359359 if (ls[i].rcvbuf != -1) {
360360 if (setsockopt(ls[i].fd, SOL_SOCKET, SO_RCVBUF,