/[Apache-SVN]
ViewVC logotype

Revision 1624218


Jump to revision: Previous Next
Author: stevehay
Date: Thu Sep 11 07:46:40 2014 UTC (9 years, 8 months ago)
Changed paths: 2
Log Message:
Don't answer anything to the client before it's done sending the POST data

LWP::Protocol::http sends long POST requests with several write() calls.
If it gets a response with a full HTTP header (up to the two newlines)
before it's done with the later write() calls sending the actual POST data,
it will stop writing. This leads to a deadlock and a test failure after
timeout.

The problem only shows up with large POSTED strings like the one in
read3.pm, but update read2.pm too for correctness.

Thread at
 http://mail-archives.apache.org/mod_mbox/perl-dev/201408.mbox/%3C20140809104131.GA3670@estella.local.invalid%3E

Bug-Debian: https://bugs.debian.org/697682

Patch by Niko Tyni <ntyni@debian.org>.

Changed paths

Path Details
Directoryperl/modperl/trunk/t/response/TestApache/read2.pm modified , text changed
Directoryperl/modperl/trunk/t/response/TestApache/read3.pm modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26