Bug 55456 - Paramter httpclient.socket.https.cps does not limit the bandwidth for HTTPS
Summary: Paramter httpclient.socket.https.cps does not limit the bandwidth for HTTPS
Status: RESOLVED DUPLICATE of bug 55455
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.9
Hardware: PC All
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-20 18:13 UTC by simon@
Modified: 2013-08-20 18:14 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simon@ 2013-08-20 18:13:17 UTC
During our test we noticed that httpclient.socket.http.cps could correctly limit the bandwidth while httpclient.socket.https.cps had absolutely no effect on the bytes transfer rate.

By looking at the sources it appears that HC4TrustAllSSLSocketFactory that is the parent class of SlowHC4SSLSocketFactory does not use the argument "factory" passed to the constructor

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

http://svn.apache.org/repos/asf/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/SlowHC4SSLSocketFactory.java
http://svn.apache.org/repos/asf/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HC4TrustAllSSLSocketFactory.java

Please modify the instantiation to allow the CPS parameter to be passed to the HttpSSLProtocolSocketFactory
Comment 1 simon@ 2013-08-20 18:14:16 UTC

*** This bug has been marked as a duplicate of bug 55455 ***
Comment 2 The ASF infrastructure team 2022-09-24 20:37:54 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3202