Re: Setting solrj server connection timeout

2012-02-16 Thread Shawn Heisey
On 2/16/2012 6:28 PM, Mark Miller wrote: Im not sure that timeout will help you here - I believe it's the timeout on 'creating' the connection. Try setting the socket timeout (setSoTimeout) - that should let you try sooner. It looks like perhaps the server is timing out and closing the connecti

Re: Setting solrj server connection timeout

2012-02-16 Thread Mark Miller
Im not sure that timeout will help you here - I believe it's the timeout on 'creating' the connection. Try setting the socket timeout (setSoTimeout) - that should let you try sooner. It looks like perhaps the server is timing out and closing the connection. I guess all you can do is timeout reas

Re: Setting solrj server connection timeout

2012-02-16 Thread Shawn Heisey
On 2/3/2012 1:12 PM, Shawn Heisey wrote: Is the following a reasonable approach to setting a connection timeout with SolrJ? queryCore.getHttpClient().getHttpConnectionManager().getParams() .setConnectionTimeout(15000); Right now I have all my solr server objects sharing