Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: статус у 0.6.29
On Fri, Apr 04, 2008 at 02:57:20PM +0400, Igor Sysoev wrote:
> On Fri, Apr 04, 2008 at 01:11:41PM +0300, Alex Vorona wrote:
>
> > Igor Sysoev пишет:
> > > А корки есть ?
> > >
> > выслал последнюю секунду 4-х воркеров, погрепаную из дебаг-лога по PID#0.
>
> Возможно, я смогу воспроизвести.
Патч.
--
Игорь Сысоев
http://sysoev.ru
Index: src/http/ngx_http_upstream.c
===================================================================
--- src/http/ngx_http_upstream.c (revision 1278)
+++ src/http/ngx_http_upstream.c (working copy)
@@ -421,13 +421,17 @@
ctx->data = r;
ctx->timeout = clcf->resolver_timeout;
+ u->resolved->ctx = ctx;
+
if (ngx_resolve_name(ctx) != NGX_OK) {
+
+ /* ngx_resolve_name() frees ctx on immediate failure */
+ u->resolved->ctx = NULL;
+
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
return;
}
- u->resolved->ctx = ctx;
-
return;
}
|