Skip to main content

time out for url.openConnection() ?

No replies
bloomfield
Offline
Joined: 2008-01-28

Hi everybody,

i have a problem (seems to be a known problem especially with older java versions) with a file download in my application.
I realized the file download (and so the openConnection call) in a separate thread. So the application doesn't freeze if the player looses the internet connection.
The problem is, that for example on the PS3 it takes about two minutes until the openConnection method throws an exception. Is there any way to realize a shorter connection time out or a good way to manually kill the blocked thread, means to make it leave the openConnection method??
Thank you and cheers
Jan