S
Syed Ali
Hi,
Here is the code that blocks sometimes causing the whole application to
hang:
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.connect();
==> BufferedReader buf_str =new BufferedReader(new
InputStreamReader(conn.getInputStream()));
Has anyone experienced this before? Even if the InputStream misbehaves,
there *must* be a way for the BufferedReader to eventually error out (due to
timeout or other such errors).
Any help or comments will be appreciated.
thanks,
-Syed
Here is the code that blocks sometimes causing the whole application to
hang:
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.connect();
==> BufferedReader buf_str =new BufferedReader(new
InputStreamReader(conn.getInputStream()));
Has anyone experienced this before? Even if the InputStream misbehaves,
there *must* be a way for the BufferedReader to eventually error out (due to
timeout or other such errors).
Any help or comments will be appreciated.
thanks,
-Syed