Hi,

What's the "right" way to configure the timeout with HttpClient 4.2.1?

Here is what I'm doing:

                        HttpParams params = client.getParams();
                        HttpConnectionParams.setConnectionTimeout(params, 
30000);
                        HttpConnectionParams.setSoTimeout(params, 30000);
                        result.result = client.execute (method);

But I don't think it's working. Sometime it's taking way more than 30 seconds.

How should I proceed?

I have setup a thread to kill the calls when they are taking to much time

Thanks,

JM

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

Reply via email to