Hi all,
We are using HttpClient 3.1 on PC and PDA (Windows Mobile). On PDA, we
get from time to time InterruptedIOException.
java.io.InterruptedIOException: The operation timed out
at java.net.SocketImpl.receiveStreamImpl(Native Method)
at java.net.SocketImpl.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fillbuf(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.ChunkedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.ChunkedInputStream.read(Unknown Source)
at
org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(Unknown
Source)
at org.apache.commons.httpclient.ChunkedInputStream.close(Unknown
Source)
at java.io.FilterInputStream.close(Unknown Source)
at
org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(Unknown
Source)
at org.apache.commons.httpclient.AutoCloseInputStream.close(Unknown
Source)
at java.io.FilterInputStream.close(Unknown Source)
at java.io.FilterInputStream.close(Unknown Source)
at java.io.FilterInputStream.close(Unknown Source)
at java.util.zip.InflaterInputStream.close(Unknown Source)
We close all our streams before calling releaseConnection(). Do we need
to do this? Should we call releaseConnection() BEFORE closing the streams?
About the above exception, I guess that the underlaying GPRS connection
(or the server!?) went away right before closing the stream. And as
ChunkedInputStream.close() does not close the stream but tries to read
more data, this InterruptedIOException is thrown.
Could we just ignore this exception or do we need to cleanup something
else in this case?
Thank you.
Regards,
Cyril Jaquier
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]