nginx-0.7.19

Rauf Kuliyev rauf at kuliyev.com
Tue Oct 14 13:28:57 MSD 2008


А будет ли когда-нибудь рассмотрен и включен патч от Maxim Dounin:

# HG changeset patch
# User Maxim Dounin <mdounin at xxxxxxxxxx>
# Date 1220377458 -14400
# Node ID 4a1b52e95a773f05474a2ea3d2d971e21b88f9e1
# Parent  9205084bd1f3805a25a4e9ac5ee7067ad6697621
Make sure write handler for correct request will be called.

If complex reply was buffered after postpone filter (e.g. in gzip filter
module), and this happened just after switching to next postponed subrequest,
the copy filter has no chance to reclaim freed buffers and send more data.

To resolve this, just post an additional write event in ngx_http_writer()
if we got NGX_AGAIN and subrequest has been changed.

diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1968,6 +1968,11 @@ ngx_http_writer(ngx_http_request_t *r)
                    rc, &r->uri, &r->args);

     if (rc == NGX_AGAIN) {
+        if (r != c->data) {
+            ngx_post_event(wev, &ngx_posted_events);
+            return;
+        }
+
         clcf = ngx_http_get_module_loc_conf(r->main, ngx_http_core_module);
         if (!wev->ready && !wev->delayed) {
             ngx_add_timer(wev, clcf->send_timeout);

Линка на мейл: http://www.lexa.ru/nginx-ru/msg19277.html

С Уважением,

Рауф

2008/10/14 Vasiliy G Tolstov <v.tolstov at selfip.ru>
>
> On Mon, 2008-10-13 at 19:18 +0400, Igor Sysoev wrote:
> > Изменения в nginx 0.7.19                                          13.10.2008
> >
> >     *) Исправление: обновление номера версии.
> >
>
>
> А будет ли и когда, возможность использовать стандартные переменные в
> fast-cgi?
>
> --
> Vasiliy G Tolstov <v.tolstov at selfip.ru>
> Selfip.Ru


More information about the nginx-ru mailing list