Re: can a httpd fcgi module start sending generated response while the request message body is still being transmitted to the app?

Tim Toomay <toomayt-qTpDSFmajUYqDJ6do+/[email protected]> Mon, 21 Jan 2013 13:16:10 -0800
Newsgroups gmane.comp.web.fastcgi.devel
Organization Toomay Technologies Labs
Message-ID <[email protected]>
--===============6166104476527450646==
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Don't forget mod_fcgi and mod_fastcgi are DIFFERENT<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://www.apachelounge.com/viewtopic.php?t=4385">http://www.apachelounge.com/viewtopic.php?t=4385</a><br>
      <br>
    </tt>
    <div class="moz-cite-prefix">On 1/21/2013 10:23 AM, David Birmbaum
      wrote:<br>
    </div>
    <blockquote
      cite="mid:F4C281D3-70EF-4C15-B0EB-200026F09B1D-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <div>The mod_fastcgi library has an internal buffer that it uses
        to improve efficiency back to the HTTP process. &nbsp;You can tune it
        if you like; I would often crank it way up so the application
        could dump the whole output without having to wait for the
        client to receive.<br>
        <br>
        David.
        <div><br>
        </div>
        <div>------</div>
      </div>
      <div><br>
        On Jan 20, 2013, at 4:34 PM, Thomas H Bowden Jr &lt;<a
          moz-do-not-send="true" href="mailto:[email protected]">[email protected]</a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta http-equiv="Content-Type" content="text/html;
            charset=ISO-8859-1">
          I agree with Jay.
          <div><br>
          </div>
          <div>My web-server (by force) has always been apache. &nbsp;I use
            perl scripts for anything that is not c++. &nbsp;In there I have
            to unbuffer stdin/stdout &nbsp;( $|=1).</div>
          <div><br>
          </div>
          <div><br>
            <div>
              <div>On Jan 20, 2013, at 4:42 PM, Jay Sprenkle &lt;<a
                  moz-do-not-send="true"
                  href="mailto:[email protected]">[email protected]</a>&gt;
                wrote:</div>
              <br class="Apple-interchange-newline">
              <blockquote type="cite">Wouldn't the web server module
                control that behavior?<br>
                Seems like fastcgi doesn't have any control over what
                happens to the data after it's written to the pipe.<br>
                <br>
                <br>
                <div class="gmail_quote">On Sun, Jan 20, 2013 at 1:33
                  PM, <a moz-do-not-send="true"
                    href="mailto:[email protected]">[email protected]</a>
                  <span dir="ltr">&lt;<a moz-do-not-send="true"
                      href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;</span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
                    all!<br>
                    <br>
                    I was trying to send a (chunked-encoding) answer
                    that was being<br>
                    generated after each chunk of the POST-ed message
                    body was being<br>
                    received. I tried with both mod_fcgid and
                    mod_proxy_fcgi and<br>
                    both seem to buffer output until all POSTed message
                    body was<br>
                    delivered to the application<br>
                  </blockquote>
                </div>
                -- <br>
                <i
                  style="font-size:12px;font-family:Verdana,Helvetica,sans-serif"><a
                    moz-do-not-send="true" href="http://xkcd.com/1156/"
                    target="_blank">http://xkcd.com/1156/</a></i><br>
                <div><font face="Verdana, Helvetica, sans-serif"><span
                      style="font-size:12px"><i><br>
                      </i></span></font>
                  <div><br>
                  </div>
                </div>
                _______________________________________________<br>
                FastCGI-developers mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a><br>
                <a moz-do-not-send="true"
                  href="http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>FastCGI-developers mailing list</span><br>
          <span><a moz-do-not-send="true"
              href="mailto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a></span><br>
          <span><a moz-do-not-send="true"
              href="http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers</a></span><br>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
FastCGI-developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Tim Toomay
Toomay Technologies Inc
<a class="moz-txt-link-abbreviated" href="http://www.ToomayTech.com">www.ToomayTech.com</a>

*****

NOTICE OF CONFIDENTIALITY: The information contained in this e-mail and attachment(s), if any, is legally protected pursuant to the Electronic Communications Privacy Act, 18 U.S.C. 2510, et seq., inter alia, and may contain privileged and confidential information.  This communication is intended only for the use of each individual named above.  If you know, or have any reason to believe, that you are not an intended recipient, you are hereby notified that any dissemination or duplication of this e-mail is prohibited.  There is and shall be no waiver of any privilege or confidence by your receipt of this transmission.  If you know or have any reason to believe that you received this e-mail in error, please immediately notify us by e-mail or collect telephone call.</pre>
  </body>
</html>

--===============6166104476527450646==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers

--===============6166104476527450646==--