Bug 46765

Summary: doubled HTTP header leads to error (Redmine)
Product: Apache httpd-2 Reporter: Chursin Evg <wizard2k>
Component: mod_proxyAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: REOPENED ---    
Severity: normal CC: wizard2k
Priority: P2    
Version: 2.2.11   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: traffic dumps by WiresharkPortable
My httpd.exe config and log

Description Chursin Evg 2009-02-25 05:03:46 UTC
Created attachment 23306 [details]
traffic dumps by WiresharkPortable

*Apache 2.11/WinXP*
recently i try to setup "Bitnami REDMINE Stack" on two computers.
on first PC (my notebook) it was successful and just run out of the box.
on second PC (odinary computer) i get error 

502 proxy ERROR

==BEG= redmine.conf ===
ProxyPass /redmine balancer://redminecluster
ProxyPassReverse /redmine balancer://redminecluster

<Proxy balancer://redminecluster>
  BalancerMember http://127.0.0.1:3001/redmine
  BalancerMember http://127.0.0.1:3002/redmine
</Proxy>
==EOF= redmine.conf ===

==BEG= apache-error.log ===
[Mon Feb 16 14:14:52 2009] [error] [client 127.0.0.1] (70014)End of file found: proxy: error reading status line from remote server 127.0.0.1, referer: http://localhost/
[Mon Feb 16 14:14:52 2009] [error] [client 127.0.0.1] proxy: Error reading from remote server returned by /redmine/, referer: http://localhost/
==EOF= apache-error.log ===

the same problem was described at http://bitnami.org/forums/forums/19/topics/457 
but no solution found

so i'v download Wireshark portable and sniff both cases ( good one and one leads to error) 
see "traffic-capture-1(bad).pcap" and "traffic-capture-2(good).pcap"

it seems to syncronization problem or buffer overflow

i use latest Apache from apache.org
i check system for viruses

but i cannot figureout reason of dublication of message header:(
Comment 1 Chursin Evg 2009-05-18 02:55:00 UTC
it seems not intresting to anyone for fix this bug :-(
Comment 2 Chursin Evg 2009-05-19 00:33:07 UTC
i change httpd.conf to
=====
ProxyPass /redmine http://localhost:3002/redmine
#ProxyPassReverse /redmine http://localhost:3002/redmine
===

and error reproduced.

so, i decide that problem in mod_proxy, not in balancer.
Comment 3 William A. Rowe Jr. 2009-05-19 02:16:52 UTC
Fixed in trunk, and proposed for backport.
Comment 4 William A. Rowe Jr. 2009-05-19 09:26:18 UTC
See http://svn.apache.org/viewvc?view=rev&revision=771587
for the patch applied to trunk.
Comment 5 William A. Rowe Jr. 2009-05-19 15:17:44 UTC
Also see
http://people.apache.org/~wrowe/mod_proxy-r771587.zip

for the compiled mod_proxy.so 2.2.12-dev that corresponds to this patch,
simply unpack the zip into apache2.2\modules\.
Comment 6 Chursin Evg 2009-05-20 00:18:46 UTC
Created attachment 23696 [details]
My httpd.exe config and log

on answer to http://svn.apache.org/viewvc?view=rev&revision=771587
Comment 7 Chursin Evg 2009-05-20 00:22:24 UTC
as i undestend, you fix somthing else
because error is still here and nothing changed :(