Author: jvermillard
Date: Mon Jan 28 08:42:56 2008
New Revision: 615939
URL: http://svn.apache.org/viewvc?rev=615939&view=rev
Log:
Disposing the SocketConnector used for the http connection of the
AsyncHttpClient.
Thanks Tuure Laurinolli for the bug report.
Modified:
mina/asyncweb/trunk/client/src/main/java/org/apache/asyncweb/client/HttpIoHandler.java
Modified:
mina/asyncweb/trunk/client/src/main/java/org/apache/asyncweb/client/HttpIoHandler.java
URL:
http://svn.apache.org/viewvc/mina/asyncweb/trunk/client/src/main/java/org/apache/asyncweb/client/HttpIoHandler.java?rev=615939&r1=615938&r2=615939&view=diff
==============================================================================
---
mina/asyncweb/trunk/client/src/main/java/org/apache/asyncweb/client/HttpIoHandler.java
(original)
+++
mina/asyncweb/trunk/client/src/main/java/org/apache/asyncweb/client/HttpIoHandler.java
Mon Jan 28 08:42:56 2008
@@ -19,6 +19,7 @@
*/
package org.apache.asyncweb.client;
+import org.apache.mina.common.IoConnector;
import org.apache.mina.common.IoHandlerAdapter;
import org.apache.mina.common.IoSession;
import org.apache.asyncweb.common.HttpResponse;
@@ -51,5 +52,7 @@
@Override
public void sessionClosed(IoSession ioSession) throws Exception {
callback.onClosed();
+ // jvermillard : here dispose of the connector, because it's not
shared among AHC instances
+ ioSession.getService().dispose();
}
}