Hello, Note that Response Streaming is purely client side sugar. Could you please take a stack trace proves your hypothesis?
On Wed, Aug 6, 2014 at 11:40 PM, Felipe Dantas de Souza Paiva < [email protected]> wrote: > Hi Guys, > > in version 4.0 of SOLRJ a support for streaming response was added: > > https://issues.apache.org/jira/browse/SOLR-2112 > > In my application, the output for the SOLR input stream is a response > stream from a REST web service. > > It works fine, but if the client closes the connection with the REST > server, the SOLR stream continues to work. As a result of that, CPU remains > being used, although nothing is being delivered to the client. > > Is there a way to force the SOLR stream to be closed? > > I think I would have to modify the class StreamingBinaryResponseParser, by > adding a new method that checks if the SOLR stream should be closed. > > Am I right? I am using the 4.1.0 version of the SOLRJ. > > Thank you all. > Cheers, > > Felipe Dantas de Souza Paiva > UOL - Analista de Sistemas > Av. Brig. Faria Lima, 1384, 3° andar . 01452-002 . São Paulo/SP > Telefone: 11 3092 6938 > > ________________________________ > > AVISO: A informação contida neste e-mail, bem como em qualquer de seus > anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) > acima referido(s), podendo conter informações sigilosas e/ou legalmente > protegidas. Caso você não seja o destinatário desta mensagem, informamos > que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de > qualquer de seus anexos é absolutamente proibida. Solicitamos que o > remetente seja comunicado imediatamente, respondendo esta mensagem, e que o > original desta mensagem e de seus anexos, bem como toda e qualquer cópia > e/ou impressão realizada a partir destes, sejam permanentemente apagados > e/ou destruídos. Informações adicionais sobre nossa empresa podem ser > obtidas no site http://sobre.uol.com.br/. > > NOTICE: The information contained in this e-mail and any attachments > thereto is CONFIDENTIAL and is intended only for use by the recipient named > herein and may contain legally privileged and/or secret information. > If you are not the e-mail´s intended recipient, you are hereby notified > that any dissemination, distribution or copy of this e-mail, and/or any > attachments thereto, is strictly prohibited. Please immediately notify the > sender replying to the above mentioned e-mail address, and permanently > delete and/or destroy the original and any copy of this e-mail and/or its > attachments, as well as any printout thereof. Additional information about > our company may be obtained through the site http://www.uol.com.br/ir/. > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <[email protected]>
