java urlconnection doesnt throw sockettimeoutexception

listed in answer

java urlconnection doesnt throw sockettimeoutexception
0 votes, 0.00 avg. rating (0% score)

ANSWER:

See the documentation for setReadTimeout:

Some non-standard implementation of this method ignores the specified timeout.

If you don’t think that’s the issue, set the timeout to a very low number like 1 and check. You should get a java.net.SocketTimeoutException exception.

by user845279 from http://stackoverflow.com/questions/10489852