Hi,

I searched for old posts on this topic, but none seem to cover my case
exactly. I suspect I am dealing with a non-standard webserver.
However, a telnet to  the server on port 80 allows several HTTP
commands to be run before the server closes the connection (at least 6
if they succeed).

So, I want to force the client to keep an SSL connection open and
re-use it. For now I am happy to catch an exception if the server has
closed the connection.

To give me an idea of what is going on I implemented a decorator for
the ClientConnectionManager and the SSLSocketFactory, logging the
method calls to a debug log.

Every time we try and execute a query on the server, the following
calls are made:

ClientConnectionManager.requestConnection(...)
SSLSocketFactory.createSocket()
SSLSockerFactory.connectSocket(...)

I have tried:

HttpConnectionParams.setStaleCheckingEnabled(httpParams, false);

But this seems to have no effect.

How can I force the HttpClient to reuse the connections?

Regards,
Keean.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to