comparison src/http/ngx_http_core_module.c @ 584:016632f0fb18 NGINX_0_8_44

nginx 0.8.44 *) Change: now nginx does not cache by default backend responses, if they have a "Set-Cookie" header line. *) Feature: the "listen" directive supports the "setfib" parameter. Thanks to Andrew Filonov. *) Bugfix: the "sub_filter" directive might change character case on partial match. *) Bugfix: compatibility with HP/UX. *) Bugfix: compatibility with AIX xcl_r compiler. *) Bugfix: nginx treated a large SSLv2 packets as plain requests. Thanks to Miroslaw Jaworski.
author Igor Sysoev <http://sysoev.ru>
date Mon, 05 Jul 2010 00:00:00 +0400
parents c456a023113c
children 53f5f04a64b8
comparison
equal deleted inserted replaced
583:39e50617266a 584:016632f0fb18
2990 lsopt.socklen = sizeof(struct sockaddr_in); 2990 lsopt.socklen = sizeof(struct sockaddr_in);
2991 2991
2992 lsopt.backlog = NGX_LISTEN_BACKLOG; 2992 lsopt.backlog = NGX_LISTEN_BACKLOG;
2993 lsopt.rcvbuf = -1; 2993 lsopt.rcvbuf = -1;
2994 lsopt.sndbuf = -1; 2994 lsopt.sndbuf = -1;
2995 #if (NGX_HAVE_SETFIB)
2996 lsopt.setfib = -1;
2997 #endif
2995 lsopt.wildcard = 1; 2998 lsopt.wildcard = 1;
2996 2999
2997 (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr, 3000 (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr,
2998 NGX_SOCKADDR_STRLEN, 1); 3001 NGX_SOCKADDR_STRLEN, 1);
2999 3002
3408 3411
3409 lsopt.socklen = u.socklen; 3412 lsopt.socklen = u.socklen;
3410 lsopt.backlog = NGX_LISTEN_BACKLOG; 3413 lsopt.backlog = NGX_LISTEN_BACKLOG;
3411 lsopt.rcvbuf = -1; 3414 lsopt.rcvbuf = -1;
3412 lsopt.sndbuf = -1; 3415 lsopt.sndbuf = -1;
3416 #if (NGX_HAVE_SETFIB)
3417 lsopt.setfib = -1;
3418 #endif
3413 lsopt.wildcard = u.wildcard; 3419 lsopt.wildcard = u.wildcard;
3414 3420
3415 (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr, 3421 (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr,
3416 NGX_SOCKADDR_STRLEN, 1); 3422 NGX_SOCKADDR_STRLEN, 1);
3417 3423
3428 lsopt.set = 1; 3434 lsopt.set = 1;
3429 lsopt.bind = 1; 3435 lsopt.bind = 1;
3430 continue; 3436 continue;
3431 } 3437 }
3432 3438
3439 #if (NGX_HAVE_SETFIB)
3440 if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) {
3441 lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7);
3442
3443 if (lsopt.setfib == NGX_ERROR || lsopt.setfib == 0) {
3444 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
3445 "invalid setfib \"%V\"", &value[n]);
3446 return NGX_CONF_ERROR;
3447 }
3448
3449 continue;
3450 }
3451 #endif
3433 if (ngx_strncmp(value[n].data, "backlog=", 8) == 0) { 3452 if (ngx_strncmp(value[n].data, "backlog=", 8) == 0) {
3434 lsopt.backlog = ngx_atoi(value[n].data + 8, value[n].len - 8); 3453 lsopt.backlog = ngx_atoi(value[n].data + 8, value[n].len - 8);
3435 lsopt.set = 1; 3454 lsopt.set = 1;
3436 lsopt.bind = 1; 3455 lsopt.bind = 1;
3437 3456