nginx large POST body under Solaris

Igor Sysoev is at rambler-co.ru
Wed Mar 26 12:16:31 MSK 2008


On Wed, Mar 26, 2008 at 04:45:15AM -0400, Wil Tan wrote:

> Thank you so much for your help. The variables that you asked for are  
> included at the bottom.

Try the attached patch.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/ngx_http_upstream.c
===================================================================
--- src/http/ngx_http_upstream.c	(revision 1277)
+++ src/http/ngx_http_upstream.c	(working copy)
@@ -333,7 +333,6 @@
 
     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
 
-    u->output.sendfile = c->sendfile;
     u->output.pool = r->pool;
     u->output.bufs.num = 1;
     u->output.bufs.size = clcf->client_body_buffer_size;
@@ -702,6 +701,7 @@
     c->read->handler = ngx_http_upstream_process_header;
 
     c->sendfile &= r->connection->sendfile;
+    u->output.sendfile = c->sendfile;
 
     c->pool = r->pool;
     c->read->log = c->write->log = c->log = r->connection->log;


More information about the nginx mailing list