File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/com/loopj/android/http Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 27
27
import org .apache .http .HttpResponse ;
28
28
import org .apache .http .client .HttpRequestRetryHandler ;
29
29
import org .apache .http .client .methods .HttpUriRequest ;
30
+ import org .apache .http .conn .ConnectTimeoutException ;
30
31
import org .apache .http .impl .client .AbstractHttpClient ;
31
32
import org .apache .http .protocol .HttpContext ;
32
33
@@ -116,6 +117,11 @@ private void makeRequestWithRetries() throws ConnectException {
116
117
responseHandler .sendFailureMessage (e , "socket time out" );
117
118
}
118
119
return ;
120
+ } catch (ConnectTimeoutException e ) {
121
+ if (responseHandler != null ) {
122
+ responseHandler .sendFailureMessage (e , "connection time out" );
123
+ }
124
+ return ;
119
125
} catch (IOException e ) {
120
126
cause = e ;
121
127
retry = retryHandler .retryRequest (cause , ++executionCount , context );
You can’t perform that action at this time.
0 commit comments