https://issues.apache.org/bugzilla/show_bug.cgi?id=44925
Summary: mod_rewrite external map program runs out of sync after
reading response longer 2047 bytes
Product: Apache httpd-2
Version: 2.0.63
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
mod_rewrite external map program runs out of sync
after reading response longer than LONG_STRING_LEN-1 (2047 bytes)
Reading from fpout terminates after reading an '\n' character
if the response is shorter than LONG_STRING_LEN-1.
But if not, reading stops after 2047 bytes and the remaining characters
are left in the fpout pipe.
Steps to reproduce:
write an external rewriting program returning reponses longer than 2048 Bytes
Actual Results:
fpout pipe runs out of sync and the next call of the filter returns
the remaining bytes as response.
Workaround:
limit output length in external rewriting program
Expected:
- an error log entry if LONG_STRING_LEN-1 is reached while reading
- hint in the documentation of external rewrite program regarding this size
limit
Optional:
read the remaining bytes into a dummy buffer until '\n' is reached
add dynamic buffers for the response read
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]