On Tue, 2010-04-20 at 03:34 -0700, Guru Prasad P.S wrote:
> Any reason why no exception is thrown in case of non ssl mode.
> 

SSL transport is significantly more complex and different factors may
have an effect


> Explicitly the connection is not closed before reading data from stream.
> 
> Making use of BufferedHttpEntity solves this issue. (Is it a right approach?)

If you are developing a proxy, no, it is not.

> entity = new BufferedHttpEntity(entity)
> entity.getContent();
> 

BufferedHttpEntity does nothing special but read data from the input
stream into a memory buffer. Since the problem does not occur when
content is buffered, the issue is most likely caused by improper
connection management logic in your code.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to