<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div id="yiv7064387850"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;"><div id="yiv7064387850yui_3_13_0_8_1396453854860_13">I am setting u->keepalive = 1 in my module too, but let me double check that though.<br clear="none"></div><div id="yiv7064387850yui_3_13_0_8_1396453854860_24"><br id="yiv7064387850yui_3_13_0_8_1396453854860_28" clear="none"></div><div id="yiv7064387850yui_3_13_0_8_1396453854860_25" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Meanwhile , is the keepalive done by http_upstream_keepalive_module ? Is it included by default or do I
need to compile explicitly include that module. I don't see the code going through that module in my request flow.</div><div id="yiv7064387850yui_3_13_0_8_1396453854860_31" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br id="yiv7064387850yui_3_13_0_8_1396453854860_35" clear="none"></div><div id="yiv7064387850yui_3_13_0_1_1396453854860_5107" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Jai<br id="yiv7064387850yui_3_13_0_1_1396453854860_4451" clear="none"><span id="yiv7064387850yui_3_13_0_8_1396453854860_19"></span></div><div id="yiv7064387850yui_3_13_0_8_1396453854860_20" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span id="yiv7064387850yui_3_13_0_8_1396453854860_19"></span></div><div class="yiv7064387850yqt8167519267" id="yiv7064387850yqt04392"><div class="yiv7064387850yahoo_quoted" id="yiv7064387850yui_3_13_0_8_1396453854860_15" style="display: block;"> <div class="yiv7064387850yui_3_13_0_1_1396453854860_4373" id="yiv7064387850yui_3_13_0_1_1396453854860_4444" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;"> <div class="yiv7064387850yui_3_13_0_1_1396453854860_4374" id="yiv7064387850yui_3_13_0_1_1396453854860_4443" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div dir="ltr" id="yiv7064387850yui_3_13_0_1_1396453854860_4764"> <font id="yiv7064387850yui_3_13_0_1_1396453854860_4763" face="Arial" size="2"> On Wednesday, April 2, 2014 7:53 AM, Maxim Dounin
<mdounin@mdounin.ru> wrote:<br clear="none"> </font> </div> <div class="yiv7064387850y_msg_container" id="yiv7064387850yui_3_13_0_1_1396453854860_4442">Hello!<br clear="none"><br clear="none">On Wed, Apr 02, 2014 at 01:01:07AM -0700, Jayadev C wrote:<br clear="none"><br clear="none">> I am trying to use nginx to proxy my requests to a custom tcp <br clear="none">> backend server that I have. I am following the same model as the <br clear="none">> default memcached module with in the nginx code base (1.5.10) , <br clear="none">> the relevant
config file attached. Tried with most of the <br clear="none">> keepalive options but I still see new connections getting <br clear="none">> created to upstream server. (rather I do see the connection <br clear="none">> getting closed by nginx in strace)<br clear="none"><br clear="none">[...]<br clear="none"><br clear="none">> my_pass my_backend;<br clear="none"><br clear="none">Looks like you did something wrong in you module. Note that <br clear="none">memcached module explicitly sets u->keepalive when it's ok to keep <br clear="none">a connection alive.<br clear="none"><br clear="none">-- <br clear="none">Maxim Dounin<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://nginx.org/">http://nginx.org/</a><div class="yiv7064387850yqt8743234611" id="yiv7064387850yqtfd13098"><br clear="none"><br
clear="none">_______________________________________________<br clear="none">nginx mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:nginx@nginx.org" target="_blank" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></div><br clear="none"><br clear="none"></div> </div> </div> </div></div> </div></div></div></div></body></html>