www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Zhao <cyz...@hotmail.com>
Subject mod_rewrite/8177: Get HTTP errors when making multiple concurrent request to proxy module which rewrites url.
Date Mon, 13 Aug 2001 22:16:10 GMT

>Number:         8177
>Category:       mod_rewrite
>Synopsis:       Get HTTP errors when making multiple concurrent request to proxy module
which rewrites url.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Aug 13 15:20:00 PDT 2001
>Originator:     cyzhao@hotmail.com
>Release:        1.3.19
This bug only happens on Apache Server 1.3.19 for Win32.
Our product uses Apache's proxy module and rewrite module to implement proxy funcationality,
when we did load testing with Silk Performer we found this problem. When we made multiple
concurrent requests from Silk Performer to Apache's proxy module with rewrite rules, Silk
Performer finally gave 
"error HTTP: 1000 - invalid header, RecvHeader second attempt" error. When I took out rewrite
rules from proxy module and did the same load testing, it worked fine.

Add new proxy module by adding the follwing lines to httpd.conf:

Listen 9000

<VirtualHost our.company.com:9000>
	ProxyRequests On

	ProxyVia On
	CacheRoot "c:/apache/proxy"
	CacheSize 5
	CacheGcInterval 4
	CacheMaxExpire 24
	CacheLastModifiedFactor 0.1
	CacheDefaultExpire 1

	RewriteEngine On
	RewriteLog c:/apache/logs/rewrite.log
	RewriteLogLevel 9
	RewriteCond %{HTTP_HOST}   !^our\.company\.com
	# Use [P] to proxy/rewrite, [R] for a URL-decoration type rewrite
	RewriteRule ^proxy:(.+) $1 [P]

In Silk Performer, add script which makes request to http://www.google.com through proxy server
- our.company.com:9000

Start the test with multiple concurrent users and each user keeps making requests for 2 mintues,
then you will get HTTP error after some sucessful requests.

 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message