Hi,<br><br>Lua-nginx-module 0.16RC2<br>Nginx  0.8.54<br><br>my nginx.conf :<br>        location =/down2 {<br>                content_by_lua_file &quot;conf/lua_test.lua&quot;;<br>        }<br><br>and lua_test.lua:<br>local res = ngx.location.capture(&#39;/somepath&#39;)<br>
-- do something for res<br><br>ngx.exec(&quot;/down/pathXXX&quot;)  -- File content is &quot;ABC&quot;<br><br>then , If I use command:<br>curl localhost/down2<br>#print out ABC<br><br>if I use Firefox to visit URL &quot;<a href="http://localhost/down/pathXXX">http://localhost/down/pathXXX</a>&quot; and then &quot;ABC&quot; show out.<br>
<br>BUT , if I use ab to test it :<br>ab -v <a href="http://localhost/down2">http://localhost/down2</a><br>#Fail with timeout<br><br>Log of ab:<br><br>Benchmarking localhost (be patient)...INFO: POST header == <br>---<br>
GET /down2 HTTP/1.0<br>Host: localhost<br>User-Agent: ApacheBench/2.3<br>Accept: */*<br><br><br>---<br>LOG: header received:<br>HTTP/1.1 200 OK<br>Server: nginx/0.8.54<br>Date: Tue, 15 Mar 2011 07:22:30 GMT<br>Content-Type: text/plain<br>
Content-Length: 10<br>Last-Modified: Fri, 11 Mar 2011 09:32:28 GMT<br>Connection: close<br>Accept-Ranges: bytes<br><br>I am Best<br><br>LOG: Response code = 200<br><span style="color: rgb(255, 0, 0);">apr_poll: The timeout specified has expired (70007)</span><br>
<br>I think lua-nginx-module lose some 0x0A 0x0D in resp.<br><br>Thanks,<br>Wendal Chen<br><a href="http://myblog.sunfarms.net">http://myblog.sunfarms.net</a><br><br>