<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:宋体;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML 预设格式 Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
span.HTMLChar
        {mso-style-name:"HTML 预设格式 Char";
        mso-style-priority:99;
        mso-style-link:"HTML 预设格式";
        font-family:"Courier New";}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ZH-CN link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Thanks
for reply,<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>I had read all the Discussions
you suggested.<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The main reason is  that
 multiplexing seems useless when using “keep alive” feature and backend is fast
enough.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>It’s
true!  But real world is more sophisticated. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Our system is very
big, and over 5k machines are providing services. In Our system, nginx proxy_pass
 http request to http applications by using “keep alive”, it works well,  over
10 k requests were processed  per second and  tcp connections between nginx and
backend were blow 100. But, sometimes, response time become 1-10s or more for a
while, because maybe a db server fail over or network shrink.  Over 10k tcp
connection need to be setup as we see. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>our
backend is written by java, connections cannot be setup all a sudden, and
memory needed is big , GC collections became bottleneck, GC keep on working
even if db server or network resumed to normal, and backend server did not work
orderly any more, I observed these things several times. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>      If
multiplexing, no more connections are needed and memory needed is far small
under such a circumstance. We use multiplexing everywhere in our java applications,
It can prove my idea.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>      Nginx
is needed for sure for client http access, so I study fastcgi to solve above
problem, but nginx does support fastcgi multiplexing, which can trigger the same
problem. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>      As
a conclusion, a big production system really need that nginx pass request to backend
by multiplexing. Can you make nginx developing team work on it?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt'>发件人<span lang=EN-US>:</span></span></b><span
lang=EN-US style='font-size:10.0pt'> Sergey Brester
[mailto:serg.brester@sebres.de] <br>
</span><b><span style='font-size:10.0pt'>发送时间<span lang=EN-US>:</span></span></b><span
lang=EN-US style='font-size:10.0pt'> 2015</span><span style='font-size:10.0pt'>年<span
lang=EN-US>5</span>月<span lang=EN-US>29</span>日<span lang=EN-US> 16:40<br>
</span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US>
nginx-devel@nginx.org<br>
</span><b>抄送<span lang=EN-US>:</span></b><span lang=EN-US> </span>林谡<span
lang=EN-US><br>
</span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: </span>答复<span
lang=EN-US>: problems when use fastcgi_pass to deliver request to backend<o:p></o:p></span></span></p>

</div>

</div>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hi,<o:p></o:p></span></p>

<p><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>It's
called fastcgi multiplexing and nginx currently does not implement that (and I
don't know .<o:p></o:p></span></p>

<p><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>There
were already several discussions about that, so <a
href="http://forum.nginx.org/read.php?2,237158">read here, please.</a><o:p></o:p></span></p>

<p><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Short,
very fast fastcgi processing may be implemented without multiplexing (should be
event-driven also).<o:p></o:p></span></p>

<p><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Regards,<br>
sebres.<o:p></o:p></span></p>

<p><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <o:p></o:p></span></p>

<p><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Am
29.05.2015 09:58, schrieb </span><span style='font-size:10.0pt'>林谡</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>:<o:p></o:p></span></p>

<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 3.0pt;
margin-left:3.0pt;margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width=1398
 style='width:838.8pt;border-collapse:collapse'>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:none;border-right:solid #DDDDDD 1.0pt;background:white;
  padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'><br>
          </span><em><span lang=EN-US
  style='font-size:6.5pt;font-family:"Courier New";color:#999988'>/* we support
  the single request per connection */</span></em><span lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2573"><span
  style='color:#888866;text-decoration:none'>2573</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2574"><span
  style='color:#888866;text-decoration:none'>2574</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
        <strong><span style='font-family:"Courier New"'>case</span></strong> ngx_http_fastcgi_st_request_id_hi:</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2575"><span
  style='color:#888866;text-decoration:none'>2575</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            <strong><span style='font-family:
  "Courier New"'>if</span></strong> (ch <strong><span
  style='font-family:"Courier New"'>!=</span></strong> </span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:#009999'>0</span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'>) {</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2576"><span
  style='color:#888866;text-decoration:none'>2576</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
               
  ngx_log_error(NGX_LOG_ERR, r<strong><span style='font-family:"Courier New"'>-></span></strong>connection<strong><span
  style='font-family:"Courier New"'>-></span></strong>log, </span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:#009999'>0</span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'>,</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2577"><span
  style='color:#888866;text-decoration:none'>2577</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
                       
        </span><span lang=EN-US style='font-size:6.5pt;
  font-family:"Courier New";color:#BB8844'>"upstream sent unexpected
  FastCGI "</span><span lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2578"><span
  style='color:#888866;text-decoration:none'>2578</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
                       
        </span><span lang=EN-US style='font-size:6.5pt;
  font-family:"Courier New";color:#BB8844'>"request id high byte: %d"</span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'>, ch);</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2579"><span
  style='color:#888866;text-decoration:none'>2579</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
                <strong><span
  style='font-family:"Courier New"'>return</span></strong> NGX_ERROR;</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2580"><span
  style='color:#888866;text-decoration:none'>2580</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            }</span><span lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2581"><span
  style='color:#888866;text-decoration:none'>2581</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            state <strong><span style='font-family:
  "Courier New"'>=</span></strong> ngx_http_fastcgi_st_request_id_lo;</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2582"><span
  style='color:#888866;text-decoration:none'>2582</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            <strong><span style='font-family:
  "Courier New"'>break</span></strong>;</span><span lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2583"><span
  style='color:#888866;text-decoration:none'>2583</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2584"><span
  style='color:#888866;text-decoration:none'>2584</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
        <strong><span style='font-family:"Courier New"'>case</span></strong> ngx_http_fastcgi_st_request_id_lo:</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2585"><span
  style='color:#888866;text-decoration:none'>2585</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            <strong><span style='font-family:
  "Courier New"'>if</span></strong> (ch <strong><span
  style='font-family:"Courier New"'>!=</span></strong> </span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:#009999'>1</span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'>) {</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2586"><span
  style='color:#888866;text-decoration:none'>2586</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
               
  ngx_log_error(NGX_LOG_ERR, r<strong><span style='font-family:"Courier New"'>-></span></strong>connection<strong><span
  style='font-family:"Courier New"'>-></span></strong>log, </span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:#009999'>0</span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'>,</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2587"><span
  style='color:#888866;text-decoration:none'>2587</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
                       
        </span><span lang=EN-US style='font-size:6.5pt;
  font-family:"Courier New";color:#BB8844'>"upstream sent unexpected
  FastCGI "</span><span lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2588"><span
  style='color:#888866;text-decoration:none'>2588</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
                       
        </span><span lang=EN-US style='font-size:6.5pt;
  font-family:"Courier New";color:#BB8844'>"request id low byte: %d"</span><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'>, ch);</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2589"><span
  style='color:#888866;text-decoration:none'>2589</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
                <strong><span
  style='font-family:"Courier New"'>return</span></strong> NGX_ERROR;</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2590"><span
  style='color:#888866;text-decoration:none'>2590</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            }</span><span lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2591"><span
  style='color:#888866;text-decoration:none'>2591</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border:none;border-right:solid #DDDDDD 1.0pt;
  background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            state <strong><span style='font-family:
  "Courier New"'>=</span></strong> ngx_http_fastcgi_st_content_length_hi;</span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='border-top:none;border-left:solid #DDDDDD 1.0pt;
  border-bottom:solid #999988 1.0pt;border-right:solid #D7D7D7 1.0pt;
  background:#EEEEDD;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
  auto;text-align:right'><span lang=EN-US style='font-size:6.5pt;font-family:
  "Verdana","sans-serif";color:#888866'><a
  href="http://trac.nginx.org/nginx/browser/nginx/src/http/modules/ngx_http_fastcgi_module.c#L2592"><span
  style='color:#888866;text-decoration:none'>2592</span></a></span><span
  lang=EN-US><o:p></o:p></span></p>
  </td>
  <td valign=top style='border-top:none;border-left:none;border-bottom:solid #DDDDDD 1.0pt;
  border-right:solid #DDDDDD 1.0pt;background:white;padding:.6pt 1.2pt .6pt 1.2pt'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  lang=EN-US style='font-size:6.5pt;font-family:"Courier New";color:black'> 
            <strong><span style='font-family:
  "Courier New"'>break</span></strong>;</span><span lang=EN-US><o:p></o:p></span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='color:#1F497D'>By reading source code, I saw the reason , so
can nginx support multi request per connection in future?</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><strong><span
style='font-size:10.0pt;font-family:宋体'>发件人<span lang=EN-US>:</span></span></strong><span
lang=EN-US style='font-size:10.0pt'> </span><span style='font-size:10.0pt'>林谡<span
lang=EN-US> <br>
</span><strong><span style='font-family:宋体'>发送时间<span lang=EN-US>:</span></span></strong><span
lang=EN-US> 2015</span>年<span lang=EN-US>5</span>月<span lang=EN-US>29</span>日<span
lang=EN-US> 11:37<br>
</span><strong><span style='font-family:宋体'>收件人<span lang=EN-US>:</span></span></strong><span
lang=EN-US> 'nginx-devel@nginx.org'<br>
</span><strong><span style='font-family:宋体'>主题<span lang=EN-US>:</span></span></strong><span
lang=EN-US> problems when use fastcgi_pass to deliver request to backend</span></span><span
lang=EN-US><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US> <o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>Hi, <o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>         I write a fastcgi
server and use nginx to pass request to my server. It works till now. <o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>         But I find a
problem. Nginx always set requestId = 1 when sending fastcgi record.<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>         I was a little
upset for this, cause according to fastcgi protocol, web server can send
fastcgi records belonging to different request simultaneously, and
 requestIds are different and keep unique. I really need this feature,
because  requests can be handled simultaneously just over one connetion. <o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>         Can I find a way
out?<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US> <o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>

<pre><span lang=EN-US>_______________________________________________<o:p></o:p></span></pre><pre><span
lang=EN-US>nginx-devel mailing list<o:p></o:p></span></pre><pre><span
lang=EN-US><a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><o:p></o:p></span></pre><pre><span
lang=EN-US><a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><o:p></o:p></span></pre></blockquote>

</div>

</body>

</html>