Author: sebb
Date: Sat Feb 3 08:45:53 2007
New Revision: 503237
URL: http://svn.apache.org/viewvc?view=rev&rev=503237
Log:
Tidy up some messages
Modified:
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
Modified:
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java?view=diff&rev=503237&r1=503236&r2=503237
==============================================================================
---
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
(original)
+++
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
Sat Feb 3 08:45:53 2007
@@ -140,9 +140,9 @@
SSLManager sslmgr = null;
if (PROTOCOL_HTTPS.equalsIgnoreCase(u.getProtocol())) {
try {
- sslmgr=SSLManager.getInstance();
+ sslmgr=SSLManager.getInstance(); // N.B. this needs to be done
before opening the connection
} catch (Exception e) {
- log.warn("You may have forgotten to set the ssl.provider
property " + "in jmeter.properties", e);
+ log.warn("Problem creating the SSLManager: ", e);
}
}
@@ -152,9 +152,11 @@
if (PROTOCOL_HTTPS.equalsIgnoreCase(u.getProtocol())) {
try {
- sslmgr.setContext(conn);
+ if (null != sslmgr){
+ sslmgr.setContext(conn); // N.B. must be
done after opening connection
+ }
} catch (Exception e) {
- log.warn("You may have forgotten to set the
ssl.provider property " + "in jmeter.properties", e);
+ log.warn("Problem setting the SSLManager for
the connection: ", e);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]