Proxy proxy=new Proxy(Proxy.Type.SOCKS,new InetSocketAddress("85.105.238.24",1080));
String url="http://www.google.com";
HttpURLConnection conn=(HttpURLConnection)new URL(url).openConnection(proxy);
conn.setConnectTimeout(10*1000);
conn.setReadTimeout(10*1000);
conn.connect();
above is the code,why it can't catch timeout,it just connecting always,no response.
i tried httpclient also,it's the same problem.
i tried some proxy tester software(exe written on c++),all work fine