comparison src/event/ngx_event_accept.c @ 538:1dcf6adad484 NGINX_0_8_21

nginx 0.8.21 *) Feature: now the "-V" switch shows TLS SNI support. *) Feature: the "listen" directive of the HTTP module supports unix domain sockets. Thanks to Hongli Lai. *) Feature: the "default_server" parameter of the "listen" directive. *) Feature: now a "default" parameter is not required to set listen socket options. *) Bugfix: nginx did not support dates in 2038 year on 32-bit platforms; *) Bugfix: socket leak; the bug had appeared in 0.8.11.
author Igor Sysoev <http://sysoev.ru>
date Mon, 26 Oct 2009 00:00:00 +0300
parents f0cac61857ae
children c04fa65fe604
comparison
equal deleted inserted replaced
537:3ca2e495d9de 538:1dcf6adad484
154 c->local_sockaddr = ls->sockaddr; 154 c->local_sockaddr = ls->sockaddr;
155 c->local_socklen = ls->socklen; 155 c->local_socklen = ls->socklen;
156 156
157 c->unexpected_eof = 1; 157 c->unexpected_eof = 1;
158 158
159 #if (NGX_HAVE_UNIX_DOMAIN)
160 if (c->sockaddr->sa_family == AF_UNIX) {
161 c->tcp_nopush = NGX_TCP_NOPUSH_DISABLED;
162 c->tcp_nodelay = NGX_TCP_NODELAY_DISABLED;
163 #if (NGX_SOLARIS)
164 /* Solaris's sendfilev() supports AF_NCA, AF_INET, and AF_INET6 */
165 c->sendfile = 0;
166 #endif
167 }
168 #endif
169
159 rev = c->read; 170 rev = c->read;
160 wev = c->write; 171 wev = c->write;
161 172
162 wev->ready = 1; 173 wev->ready = 1;
163 174