| Author |
URLConnection timing out before response is received - setReadTimeout does nothing
|
Mike Hul
Greenhorn
Joined: Aug 14, 2009
Posts: 1
|
|
I'm using a socket connection to send a POST request. Here's some code:
This works fine for requests where the response is relatively small. But for larger responses, the last step here often times out and throws an IOException. Setting the ReadTimeout property appears to do nothing, the connection just ignores it. Is there any way to set the timeout to a larger number WITHOUT resorting to using Apache HttpClient (or Sun's HttpClient for that matter since I'm working in the Google Web Toolkit environment and for some reason it doesn't allow you to use it).
Any help is appreciated. Thanks in advance.
|
 |
 |
|
|
subject: URLConnection timing out before response is received - setReadTimeout does nothing
|
|
|