DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19954>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19954

[PATCH] HTTP tunneling through reverse proxy does not always work





------- Additional Comments From [EMAIL PROTECTED]  2003-12-10 00:08 -------
The preferred mechanism would be to AUTOMATICALLY send down a flush bucket if a
non-blocking read returns EAGAIN.  No configuration directive would be 
necessary.

The simplistic algorithm would be

  done = 0;
  while (!done) {
    rv = ap_get_brigade(APR_NONBLOCK_READ);
    if (APR_STATUS_IS_EAGAIN(rv)) {
        pass flush bucket down output filter chain;
        rv = ap_get_brigade(APR_BLOCK_READ);
    }
    if (rv != APR_SUCCESS) {
        done = 1;
        break;
    }
  }

The content-length filter does this, though with a slightly more complicated and
optimized algorithm.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to