> Hi Oleg,
> Yes, I have implemented my SocksSSLSocketFactory who has implemented the
> SocketFatory interface, as the code I pasted.
> In the debug mode, I also found this class was used by HttpClient, and the
> function createSocket and connectSocket of the SocksSSLSocketFactory were
> calle, everything is ok before return from connectSocket: the normal socket
> has been created and conneted to proxy server, the socks4 protocol finished
> successfully, the sslsocket is created using this normal socket
> successfully, but after return this sslsocket from connectSocket, the error
> happens, from the log I found that this sslsocket was shutdown, I don't know
> why, I don't know what happend after connectSocket returned the sslsocket.
> So my problem is that the sslsocket I created was shutdown after I returned
> it to HttpClient in connectSocket function.
>
>
> 10-07-05 10:57:42,269 DEBUG -Get connection for route
> HttpRoute[{}->https://10.64.69.13:9000]
> [org.apache.http.impl.conn.SingleClientConnManager.getConnection(SingleClientConnManager.java:195)]
>
> 2010-07-05 10:57:42,269 DEBUG -Get connection for route
> HttpRoute[{}->https://10.64.69.13:9000]
> [org.apache.http.impl.conn.SingleClientConnManager.getConnection(SingleClientConnManager.java:195)]
>
> 2010-07-05 10:57:42,286 DEBUG -Connection shut down
> [org.apache.http.impl.conn.DefaultClientConnection.shutdown(DefaultClientConnection.java:141)]
>
> 2010-07-05 10:57:42,286 DEBUG -Connection shut down
> [org.apache.http.impl.conn.DefaultClientConnection.shutdown(DefaultClientConnection.java:141)]
>
> 2010-07-05 10:57:42,287 DEBUG -Releasing connection
> org.apache.http.impl.conn.singleclientconnmanager$connadap...@19ab6f6
> [org.apache.http.impl.conn.SingleClientConnManager.releaseConnection(SingleClientConnManager.java:250)]
>
> 2010-07-05 10:57:42,287 DEBUG -Releasing connection
> org.apache.http.impl.conn.singleclientconnmanager$connadap...@19ab6f6
> [org.apache.http.impl.conn.SingleClientConnManager.releaseConnection(SingleClientConnManager.java:250)]
>
> 2010-07-05 10:57:42,287 ERROR
> -executeRequest=============================:class:class
> java.net.SocketException:Socket is not connected
> [com.trendmicro.imss.ui.modelobjects.prefilter.client.CommonUtils.executeRequest(CommonUtils.java:641)]
>
>
Post code of the SocketFactory implementation.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]