I forgot to mention line ngx_http_send_response<br>Sudo Code for ProccessNginxRequest is like this <br>ngx_str_set(&cv->value,"A BIG STRING OF LENGTH 401481")<br>ngx_http_send_response(r, NGX_HTTP_OK, &ngx_http_json_type, cv); <br>
<br clear="all">regards<div>Vivek Goel</div><br>
<br><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 12:55 PM, vivek goel <span dir="ltr"><<a href="mailto:goelvivek2011@gmail.com">goelvivek2011@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am writing my own module. <br>I am getting error with function ngx_http_send_response it is not sending complete buffer if buffer is big. <br><br>I have following code <br><br> ngx_http_complex_value_t cv;<br> ngx_int_t rc = ProcessNginxRequest(r, &cv);<br>
ngx_http_finalize_request(r, NGX_HTTP_OK);<br>return rc;<br><br>Sudo Code for ProccessNginxRequest is like this <br>ngx_str_set(&cv->value,"A BIG STRING OF LENGTH 401481")<br><br>But response coming from the server is truncated. <br>
How to fix this problem ?<br><br><br><br><br><br><br clear="all">regards<span class="HOEnZb"><font color="#888888"><div>Vivek Goel</div><br>
</font></span></blockquote></div><br>