comparison src/core/ngx_connection.c @ 184:71ff1e2b484a NGINX_0_3_39

nginx 0.3.39 *) Feature: the "uninitialized_variable_warn" directive; the logging level of the "uninitialized variable" message was lowered from "alert" to "warn". *) Feature: the "override_charset" directive. *) Change: now if the unknown variable is used in the "echo" and "if expr='$name'" SSI-commands, then the "unknown variable" message is not logged. *) Bugfix: the active connection counter increased on the exceeding of the connection limit specified by the "worker_connections" directive; bug appeared in 0.2.0. *) Bugfix: the limit rate might not work on some condition; bug appeared in 0.3.38.
author Igor Sysoev <http://sysoev.ru>
date Mon, 17 Apr 2006 00:00:00 +0400
parents fae16d0c5bf4
children 55328d69b335
comparison
equal deleted inserted replaced
183:f4b38f37ca5b 184:71ff1e2b484a
383 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_socket_errno, 383 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_socket_errno,
384 "setsockopt(SO_SNDBUF, %d) %V failed, ignored", 384 "setsockopt(SO_SNDBUF, %d) %V failed, ignored",
385 ls[i].sndbuf, &ls[i].addr_text); 385 ls[i].sndbuf, &ls[i].addr_text);
386 } 386 }
387 } 387 }
388
389 #if 0
390 if (1) {
391 int tcp_nodelay = 1;
392
393 if (setsockopt(ls[i].fd, IPPROTO_TCP, TCP_NODELAY,
394 (const void *) &tcp_nodelay, sizeof(int))
395 == -1)
396 {
397 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_socket_errno,
398 "setsockopt(TCP_NODELAY) %V failed, ignored",
399 &ls[i].addr_text);
400 }
401 }
402 #endif
388 403
389 if (ls[i].listen) { 404 if (ls[i].listen) {
390 if (listen(ls[i].fd, ls[i].backlog) == -1) { 405 if (listen(ls[i].fd, ls[i].backlog) == -1) {
391 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_socket_errno, 406 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_socket_errno,
392 "changing the listen() backlog to %d " 407 "changing the listen() backlog to %d "