httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44574] New: Wrong behavior of the ProxyIOBufferSize directive
Date Tue, 11 Mar 2008 10:33:23 GMT

           Summary: Wrong behavior of the ProxyIOBufferSize directive
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy


I've found something strange in the mod_proxy (httpd 2.0.63 and 2.2.8) setup:
The following directive says:

The |ProxyIOBufferSize| directive adjusts the size of the internal buffer,
which is used as a scratchpad for the data between input and output. The size
must be less or equal |8192|.

LESS or EQUAL 8192...

And the code in mod_proxy.c is:

long s = atol(arg);

psf->io_buffer_size = ((s > AP_IOBUFSIZE) ? s : AP_IOBUFSIZE);
psf->io_buffer_size_set = 1;

should be

psf->io_buffer_size = ((s < AP_IOBUFSIZE) ? s : AP_IOBUFSIZE);

It's the same in 2.2.x:

else if (!strcasecmp(key, "iobuffersize")) {
       long s = atol(val);
       worker->io_buffer_size = ((s > AP_IOBUFSIZE) ? s : AP_IOBUFSIZE);
       worker->io_buffer_size_set = 1;

I actually need this directive to work better with some stream data. Can
somebody confirm the modification must be done in the code and not in the
documentation ?

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message