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.
Original issue reported on code.google.com by gmi...@gmail.com on 20 May 2010 at 4:37
Original issue reported on code.google.com by
gmi...@gmail.com
on 20 May 2010 at 4:37