i have set the timeout of the httpclient, code is here:
RequestConfig config = RequestConfig.custom()
                                    .setSocketTimeout(120000)
                                    .setConnectTimeout(120000)
                                    .setConnectionRequestTimeout(120000)
                                    .build();
httpclient = HttpClients.custom()
                                .setDefaultRequestConfig(config)
                                .setRedirectStrategy(myRedirectStrategy)
                                .setRoutePlanner(routePlanner)
                                .build();‍



But when i call httpclient.execute(), it will still block here so long time 
great than 120000 milisecond.
why the timeout is not effective? please help!

Reply via email to