My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 47: HttpConnection: empty InputStream after closing connection
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by gmi...@gmail.com, May 20, 2010
What steps will reproduce the problem?
1. open an HttpConnection
2. get its InputStream
3. close HttpConnection without closing the InputStream
4. try to read from InputStream - see it reads empty data (read() returns -
1)

What is the expected output? What do you see instead?
In WTK emulator and real devices (Nokia S60, S40, LG, Samsung) the 
InputStream doesn't die after the connection is closed, and data can be 
read from the stream. It would be good to follow real implementations, or 
at least throw an exception that the connection has been closed, instead of 
silently returning empty data.
I agree that using InputStream after closing the connection is not good 
anyway, so I'll change my code.
This is a minor bug, just for your information.

What version of the product are you using? On what operating system?
ME 2.0.4

Please provide any additional information below.


Powered by Google Project Hosting