<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_ym19_1_1489063930007_280250" dir="ltr"><span id="yui_3_16_0_ym19_1_1489063930007_280748">To answer my own question, even though I still don't see why it has anything to do with the auth-request module, but the reason requests are timing out is because form-input module called ngx_http_read_client_request_body(), which then set write_event_handler to ngx_http_request_empty_handler to block write events. This seems to block the event from being forwarded to the backend (via proxy_pass). I modified the ngx_http_read_client_request_body() implementation to not override the request's write_event_handler, and everything started working. No more timeouts.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489063930007_280746"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489063930007_280795"><span id="yui_3_16_0_ym19_1_1489063930007_280794">I don't know enough to understand the ramification of my change, even though it seems to fixed my immediate problem. Any insights will be greatly appreciated.</span></div><div dir="ltr"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489063930007_280728"><span>Thanks.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489063930007_280729"><span>Yongtao</span></div> <div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1489063930007_280249"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1489063930007_280238" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;" id="yui_3_16_0_ym19_1_1489063930007_280237"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1489063930007_280236"> <div dir="ltr" id="yui_3_16_0_ym19_1_1489063930007_280246"><font id="yui_3_16_0_ym19_1_1489063930007_280245" size="2" face="Arial"> On Thursday, March 9, 2017 8:58 PM, Yongtao You via nginx <nginx@nginx.org> wrote:<br></font></div>  <br><br> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1489063930007_280235"><div id="yiv6044090998"><div id="yui_3_16_0_ym19_1_1489063930007_280234"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;" id="yui_3_16_0_ym19_1_1489063930007_280233"><div id="yiv6044090998yui_3_16_0_ym19_1_1489063930007_4267">Hi,</div><div id="yui_3_16_0_ym19_1_1489063930007_280241"><br></div><div id="yiv6044090998yui_3_16_0_ym19_1_1489063930007_6108" dir="ltr">I was able to get both form-input-nginx-module and nginx-auth-request-module work fine, individually, with nginx-1.9.9. Putting them together, and the HTTP POST request just timeout (I never got any response back). Any one had any experience using both of them in the same location block?</div><div id="yiv6044090998yui_3_16_0_ym19_1_1489063930007_6107"><br></div><div id="yiv6044090998yui_3_16_0_ym19_1_1489063930007_6104">Thanks.</div><div id="yiv6044090998yui_3_16_0_ym19_1_1489063930007_6105">Yongtao</div><div id="yiv6044090998yui_3_16_0_ym19_1_1489063930007_6106"><br></div></div></div></div>_______________________________________________<br>nginx mailing list<br><a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br><a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br><br></div>  </div> </div>  </div></div></body></html>