You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2016/07/26 10:03:32 UTC
[Bug 59902] New: Https handshake failure when setting
httpclient.socket.https.cps property
https://bz.apache.org/bugzilla/show_bug.cgi?id=59902
Bug ID: 59902
Summary: Https handshake failure when setting
httpclient.socket.https.cps property
Product: JMeter
Version: 3.0
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: loisel.jerome@gmail.com
Created attachment 34072
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34072&action=edit
JMX to reproduce the issue
The recent upgrade to HttpClient 4.5.2 solved handshake failure issue by
introducing support for HTTPS SNI certificates. Unfortunately, it breaks again
when enabling HTTPS bandwidth limitation.
Steps to reproduce:
1. Edit bin/user.properties: add the following line:
httpclient.socket.https.cps=1280000
2. Run the attached JMX,
3. The Https request fails with the following stack:
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at
org.apache.jmeter.util.SlowSSLSocket.startHandshake(SlowSSLSocket.java:160)
at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:553)
at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:412)
at
org.apache.jmeter.protocol.http.sampler.LazySchemeSocketFactory.connectSocket(LazySchemeSocketFactory.java:97)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:179)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:328)
at
org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:114)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:612)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)
at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:566)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:326)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:465)
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:410)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:241)
at java.lang.Thread.run(Thread.java:745)
When running exactly the same JMX without the cps property, it's working
properly.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 59902] Https handshake failure when setting
httpclient.socket.https.cps property
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59902
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |p.mouawad@ubik-ingenierie.c
| |om
Status|NEW |RESOLVED
Resolution|--- |FIXED
Hardware|PC |All
OS|Linux |All
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Sun Jul 31 20:07:10 2016
New Revision: 1754681
URL: http://svn.apache.org/viewvc?rev=1754681&view=rev
Log:
Bug 59902 - Https handshake failure when setting httpclient.socket.https.cps
property
Bugzilla Id: 59902
Added:
jmeter/trunk/src/core/org/apache/jmeter/util/HostNameSetter.java (with
props)
Modified:
jmeter/trunk/src/core/org/apache/jmeter/util/SlowSSLSocket.java
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/JMeterClientConnectionOperator.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 59902] Https handshake failure when setting
httpclient.socket.https.cps property
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59902
Jerome <lo...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
--
You are receiving this mail because:
You are the assignee for the bug.