Lines 70-75
Link Here
|
70 |
import org.apache.jmeter.testelement.property.StringProperty; |
70 |
import org.apache.jmeter.testelement.property.StringProperty; |
71 |
import org.apache.jmeter.testelement.property.TestElementProperty; |
71 |
import org.apache.jmeter.testelement.property.TestElementProperty; |
72 |
import org.apache.jmeter.util.JMeterUtils; |
72 |
import org.apache.jmeter.util.JMeterUtils; |
|
|
73 |
import org.apache.jmeter.util.JsseSSLManager; |
74 |
import org.apache.jmeter.util.SSLManager; |
73 |
import org.apache.jorphan.logging.LoggingManager; |
75 |
import org.apache.jorphan.logging.LoggingManager; |
74 |
import org.apache.jorphan.util.JOrphanUtils; |
76 |
import org.apache.jorphan.util.JOrphanUtils; |
75 |
import org.apache.log.Logger; |
77 |
import org.apache.log.Logger; |
Lines 233-238
Link Here
|
233 |
private static final String RESPONSE_PARSERS= // list of parsers |
235 |
private static final String RESPONSE_PARSERS= // list of parsers |
234 |
JMeterUtils.getProperty("HTTPResponse.parsers");//$NON-NLS-1$ |
236 |
JMeterUtils.getProperty("HTTPResponse.parsers");//$NON-NLS-1$ |
235 |
|
237 |
|
|
|
238 |
// BEGIN 51380 |
239 |
// Control reuse of cached SSL Context in subsequent iterations |
240 |
private static final boolean USE_CACHED_SSL_CONTEXT = JMeterUtils |
241 |
.getPropDefault("https.use.cached.ssl.context", true); |
242 |
// END 51380 |
243 |
|
236 |
static{ |
244 |
static{ |
237 |
String []parsers = JOrphanUtils.split(RESPONSE_PARSERS, " " , true);// returns empty array for null |
245 |
String []parsers = JOrphanUtils.split(RESPONSE_PARSERS, " " , true);// returns empty array for null |
238 |
for (int i=0;i<parsers.length;i++){ |
246 |
for (int i=0;i<parsers.length;i++){ |
Lines 258-263
Link Here
|
258 |
parsersForType.put("text/html", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
266 |
parsersForType.put("text/html", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
259 |
log.info("No response parsers defined: text/html only will be scanned for embedded resources"); |
267 |
log.info("No response parsers defined: text/html only will be scanned for embedded resources"); |
260 |
} |
268 |
} |
|
|
269 |
|
270 |
log.info("Reuse SSL session context on subsequent iterations: " |
271 |
+ USE_CACHED_SSL_CONTEXT); |
261 |
} |
272 |
} |
262 |
|
273 |
|
263 |
// Bug 49083 |
274 |
// Bug 49083 |
Lines 1234-1246
Link Here
|
1234 |
testEnded(); |
1245 |
testEnded(); |
1235 |
} |
1246 |
} |
1236 |
|
1247 |
|
1237 |
/** |
1248 |
/** |
1238 |
* {@inheritDoc} |
1249 |
* {@inheritDoc} |
1239 |
*/ |
1250 |
*/ |
1240 |
public void testIterationStart(LoopIterationEvent event) { |
1251 |
public void testIterationStart(LoopIterationEvent event) { |
1241 |
} |
1252 |
// BEGIN 51380 |
|
|
1253 |
if (!USE_CACHED_SSL_CONTEXT) { |
1254 |
JsseSSLManager sslMgr = (JsseSSLManager) SSLManager.getInstance(); |
1255 |
sslMgr.resetContext(); |
1256 |
notifySSLContextWasReset(); |
1257 |
} |
1258 |
// END 51380 |
1259 |
} |
1242 |
|
1260 |
|
1243 |
/** |
1261 |
/** |
|
|
1262 |
* Free thread connections Related to ISSUE 51380 |
1263 |
*/ |
1264 |
protected void notifySSLContextWasReset() { |
1265 |
// NOOP |
1266 |
} |
1267 |
|
1268 |
/** |
1244 |
* {@inheritDoc} |
1269 |
* {@inheritDoc} |
1245 |
*/ |
1270 |
*/ |
1246 |
public void testStarted() { |
1271 |
public void testStarted() { |