Bug 55455 - HTTPS with HTTPClient4 ignores cps setting
HTTPS with HTTPClient4 ignores cps setting
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.9
All All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
: 55456 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-08-20 18:09 UTC by apache
Modified: 2014-04-28 06:40 UTC (History)
3 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description apache 2013-08-20 18:09:20 UTC
setting

httpclient.socket.http.cps=50
httpclient.socket.https.cps=50

jmx with 
<HTTPSamplerProxy ...
<stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
</HTTPSamplerProxy>

when using https urls the cps setting is ignored


likely cause is an unused parameter in 
src/protocol/http/org/apache/jmeter/protocol/http/util/HC4TrustAllSSLSocketFactory.java (not verified) 

---snip--
  protected HC4TrustAllSSLSocketFactory(javax.net.ssl.SSLSocketFactory factory) throws GeneralSecurityException {
        super(TRUSTALL, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
        this.factory = new HttpSSLProtocolSocketFactory((JsseSSLManager)JsseSSLManager.getInstance());
    }
---snip--

the factory parameter is ignored and a default socket factory newly created without the cps setting
Comment 1 simon@ 2013-08-20 18:14:16 UTC
*** Bug 55456 has been marked as a duplicate of this bug. ***
Comment 2 Philippe Mouawad 2013-08-20 19:53:08 UTC
Date: Tue Aug 20 19:51:55 2013
New Revision: 1515950

URL: http://svn.apache.org/r1515950
Log:
Bug 55455 - HTTPS with HTTPClient4 ignores cps setting
Bugzilla Id: 55455

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/JsseSSLManager.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HC4TrustAllSSLSocketFactory.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 3 Philippe Mouawad 2013-08-20 19:56:50 UTC
Note the Java Sampler now also supports the speed limitation.

Your feedback on this is welcome.
Comment 4 Philippe Mouawad 2013-08-20 20:02:26 UTC
Date: Tue Aug 20 20:01:43 2013
New Revision: 1515953

URL: http://svn.apache.org/r1515953
Log:
Bug 55455 - HTTPS with HTTPClient4 ignores cps setting
Remove deprecated note
Bugzilla Id: 55455

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/JsseSSLManager.java