Re: HttpEntity.consumeContent() needs to much time. (HC 4.0 beta)

2008-04-17 Thread Oleg Kalnichevski
On Thu, 2008-04-17 at 11:40 +0200, Jan Bracker wrote: Hello, i'm using the DefaultHttpClient for downloading bigger files. When i want to abort a download i call response.getEntity().consumeContent() Why? The purpose of HttpEntity#consumeContent() method is to ensure the underlying

Re: HttpEntity.consumeContent() needs to much time. (HC 4.0 beta)

2008-04-17 Thread Jan Bracker
(I assume that is what i should do if i want to close connections of HttpClient). But the longer content downloaded on that connections get the more time it takes to close the given connection. Please use #abort method instead. I can't find any #abort methode within

Re: HttpEntity.consumeContent() needs to much time. (HC 4.0 beta)

2008-04-17 Thread Sebastiaan van Erk
Jan Bracker wrote: (I assume that is what i should do if i want to close connections of HttpClient). But the longer content downloaded on that connections get the more time it takes to close the given connection. Please use #abort method instead. I can't find any #abort methode

Re: HttpEntity.consumeContent() needs to much time. (HC 4.0 beta)

2008-04-17 Thread Jan Bracker
Thank you, that solved my problem. 2008/4/17, Sebastiaan van Erk [EMAIL PROTECTED]: Jan Bracker wrote: (I assume that is what i should do if i want to close connections of HttpClient). But the longer content downloaded on that connections get the more time it takes to close