https://bz.apache.org/bugzilla/show_bug.cgi?id=59489
Bug ID: 59489
Summary: Regression in JMeter 3.0 : Compressed responses break
keepalive management
Product: JMeter
Version: 3.0
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Hello,
We have an issue in current 3.0 rc4 as seen by Rainer :
- https://issues.apache.org/jira/browse/HTTPCLIENT-1742
The issue is due to a behavioral change in HttpClient 4.5.2 vs
httpclient-4.2.6:
ResponseContentEncoding removes 3 headers from Response : Content-Encoding,
Content-Length, Content-MD5
JMeter uses DefaultRequestDirector which is replaced by MainClientExec
Now here is what happens:
At this line, PostProcessor run , leading to removal of 3 headers
https://github.com/apache/httpclient/blob/4.5.x/httpclient/src/main/java-deprecated/org/apache/http/impl/client/DefaultRequestDirector.java#L496
At the next line, keepAlive management is run, but it's too late as headers
have been removed:
https://github.com/apache/httpclient/blob/4.5.x/httpclient/src/main/java-deprecated/org/apache/http/impl/client/DefaultRequestDirector.java#L500
While in new HC Class ProtocolExec:
The keepAlive is managed in this
https://github.com/apache/httpclient/blob/4.5.x/httpclient/src/main/java/org/apache/http/impl/execchain/ProtocolExec.java#L184
Which calls this:
https://github.com/apache/httpclient/blob/4.5.x/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java#L274
And Compression is managed afterwards in :
https://github.com/apache/httpclient/blob/4.5.x/httpclient/src/main/java/org/apache/http/impl/execchain/ProtocolExec.java#L189
So no issue in HC4.5.2, but in JMeter. I think it's unfortunately a stopper for
the release.
Breaking KeepAlive is a big issue
--
You are receiving this mail because:
You are the assignee for the bug.