You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2009/06/26 20:38:36 UTC
svn commit: r788812 - in /jakarta/jmeter/trunk:
src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
xdocs/changes.xml
Author: sebb
Date: Fri Jun 26 18:38:36 2009
New Revision: 788812
URL: http://svn.apache.org/viewvc?rev=788812&view=rev
Log:
Bug 47420 - LDAP extended request not closing connections during add request
Modified:
jakarta/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
jakarta/jmeter/trunk/xdocs/changes.xml
Modified: jakarta/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java?rev=788812&r1=788811&r2=788812&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java (original)
+++ jakarta/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java Fri Jun 26 18:38:36 2009
@@ -604,7 +604,8 @@
private void addTest(LdapExtClient ldap, DirContext dirContext, SampleResult res) throws NamingException {
try {
res.sampleStart();
- ldap.createTest(dirContext, getUserAttributes(), getBaseEntryDN());
+ DirContext ctx = ldap.createTest(dirContext, getUserAttributes(), getBaseEntryDN());
+ ctx.close(); // the createTest() method creates an extra context which needs to be closed
} finally {
res.sampleEnd();
}
Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=788812&r1=788811&r2=788812&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Fri Jun 26 18:38:36 2009
@@ -70,6 +70,7 @@
<h3>Other Samplers</h3>
<ul>
+<li>Bug 47420 - LDAP extended request not closing connections during add request</li>
</ul>
<h3>Controllers</h3>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org