I am using the following code to send out solr request from a webapp. please
notice the timeout setting:


        HttpClient client = new HttpClient();
        HttpMethod method = new GetMethod(solrReq);


            method.getParams().setParameter(HttpConnectionParams.SO_TIMEOUT,
                    new Integer(15000));


            client.executeMethod(method);
            int statcode = method.getStatusCode();

            if (statcode == HttpStatus.SC_OK)
            {
... ...

when the 'solrReq' is a solr query url (such as
http://[host]:8080/solr/blah/select?q=xxxxx), if the server is not
responsive it times out in 15 seconds;

however, if the 'solrReq' is a solr ping (such as
http://[host]:8080/solr/default/admin/ping), it wont timeout in 15 second,
it seems it will time out in few minutest instead.

any idea, suggestions?
thanks
Renee
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/using-HTTPClient-sending-solr-ping-request-wont-timeout-as-specified-tp1691292p1691292.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to