Hi,

I have code that is reading data from a website, the website that I'm
reading data from is at times a bit slows, so I want to use
setConnectTimeout on the URLconnection that I'm using.

The problem is that it looks like the value is ignored, or that it
doesn't work. I have set the setConnectTimeout to 30 seconds (i.e.
30000 as value since the javadoc says that the argument is in ms).

I then call connect, and I have through my logs seen that the code can
get blocked in the connect call for several hours (in Android 1.6,
don't know about the other versions).

Has anyone else seen this problem? What to do about it? I don't see
how I would create a workaround since I don't have anything that I can
invoke close on (I would create a separate thread that invoked close
on the stream/socket after a certain time if the problem was related
to slow reading)

Thanks
Kaj


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to