Mercurial > hg > nginx-vendor-0-8
comparison src/core/ngx_inet.c @ 236:c982febb7588 NGINX_0_4_3
nginx 0.4.3
*) Change: now the 499 error could not be redirected using an
"error_page" directive.
*) Feature: the Solaris 10 event ports support.
*) Feature: the ngx_http_browser_module.
*) Bugfix: a segmentation fault may occur while redirecting the 400
error to the proxied server using an "proxy_pass" directive.
*) Bugfix: a segmentation fault occurred if an unix domain socket was
used in an "proxy_pass" directive; bug appeared in 0.3.47.
*) Bugfix: SSI did work with memcached and nonbuffered responses.
*) Workaround: of the Sun Studio PAUSE hardware capability bug.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 26 Sep 2006 00:00:00 +0400 |
parents | 56688ed172c8 |
children | 644510700914 |
comparison
equal
deleted
inserted
replaced
235:f622c719b711 | 236:c982febb7588 |
---|---|
241 u->type = NGX_PARSE_URL_UNIX; | 241 u->type = NGX_PARSE_URL_UNIX; |
242 | 242 |
243 p += 5; | 243 p += 5; |
244 len -= 5; | 244 len -= 5; |
245 | 245 |
246 u->uri.len = len; | |
247 u->uri.data = p; | |
248 | |
246 if (u->uri_part) { | 249 if (u->uri_part) { |
247 for (i = 0; i < len; i++) { | 250 for (i = 0; i < len; i++) { |
248 | 251 |
249 if (p[i] == ':') { | 252 if (p[i] == ':') { |
250 len = i; | 253 len = i; |
282 saun->sun_family = AF_UNIX; | 285 saun->sun_family = AF_UNIX; |
283 (void) ngx_cpystrn((u_char *) saun->sun_path, p, len + 1); | 286 (void) ngx_cpystrn((u_char *) saun->sun_path, p, len + 1); |
284 | 287 |
285 u->peers->peer[0].sockaddr = (struct sockaddr *) saun; | 288 u->peers->peer[0].sockaddr = (struct sockaddr *) saun; |
286 u->peers->peer[0].socklen = sizeof(struct sockaddr_un); | 289 u->peers->peer[0].socklen = sizeof(struct sockaddr_un); |
287 u->peers->peer[0].name = u->url; | 290 u->peers->peer[0].name.len = len + 5; |
291 u->peers->peer[0].name.data = u->url.data; | |
288 u->peers->peer[0].uri_separator = ":"; | 292 u->peers->peer[0].uri_separator = ":"; |
289 | 293 |
290 u->host_header.len = sizeof("localhost") - 1; | 294 u->host_header.len = sizeof("localhost") - 1; |
291 u->host_header.data = (u_char *) "localhost"; | 295 u->host_header.data = (u_char *) "localhost"; |
292 | 296 |