<div class="gmail_quote">On Wed, Nov 21, 2012 at 5:31 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>[...]<br>
Please try the following patch:<br>
<br>
--- a/src/http/ngx_http_request_body.c<br>
+++ b/src/http/ngx_http_request_body.c<br>
@@ -174,6 +174,7 @@ ngx_http_read_client_request_body(ngx_ht<br>
             rb->to_write = rb->bufs;<br>
<br>
             r->read_event_handler = ngx_http_read_client_request_body_handler;<br>
+            r->write_event_handler = ngx_http_request_empty_handler;<br>
<br>
             return ngx_http_do_read_client_request_body(r);<br>
         }<br>
@@ -234,6 +235,7 @@ ngx_http_read_client_request_body(ngx_ht<br>
     }<br>
<br>
     r->read_event_handler = ngx_http_read_client_request_body_handler;<br>
+    r->write_event_handler = ngx_http_request_empty_handler;<br>
<br>
     return ngx_http_do_read_client_request_body(r);<br>
<div class="HOEnZb"><div class="h5"> }<br></div></div></blockquote></div><br>Hi Maxim,<br>Your patch solved the problem for me. Now files are uploaded correctly in both synthetic tests and from real Iphone application.<br>
Thank you!<br><br>-- <br>Regards,<br>Dmitry<br><br>