Thanks Jason, I'll give it a try immediately. Ciao, Vincenzo
-- mobile: 3498513251 skype: free.dev > On 21 Sep 2017, at 19:51, Jason Gerlowski <gerlowsk...@gmail.com> wrote: > > Hi Vincenzo, > > Have you tried setting the read/socket timeout on your client? > CloudSolrServer uses a LBHttpSolrServer under the hood, which you can > get with the getLBServer method > (https://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrServer.html#getLbServer()). > Once you have access to LBHttpSolrServer, you can use the > "setSoTimeout" method > (https://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/impl/LBHttpSolrServer.html#setSoTimeout(int)) > to choose an appropriate maximum timeout. > > At least, that's how the Javadocs make it look in 4.x, and how I know > it works in more recent versions. Hope that helps. > > Jason > >> On Thu, Sep 21, 2017 at 1:07 PM, Vincenzo D'Amore <v.dam...@gmail.com> wrote: >> Hi, >> >> I have a huge problem with few queries in SolrCloud 4.8.1 that hangs the >> client. >> >> Actually I'm unable to understand even if the cluster really receives the >> requests. >> >> How can I set a timeout when Solrj client wait too much ? >> >> Best regards, >> Vincenzo >> >> -- >> Vincenzo D'Amore >> email: v.dam...@gmail.com >> skype: free.dev >> mobile: +39 349 8513251