Skip to content

Commit f542d7f

Browse files
committed
http默认retry次数改为3次
1 parent 07c330b commit f542d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/com/lidroid/xutils/HttpUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void process(HttpResponse response, HttpContext httpContext) throws org.a
134134

135135
private final static int DEFAULT_CONN_TIMEOUT = 1000 * 15; // 15s
136136

137-
private final static int DEFAULT_RETRY_TIMES = 5;
137+
private final static int DEFAULT_RETRY_TIMES = 3;
138138

139139
private static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
140140
private static final String ENCODING_GZIP = "gzip";

0 commit comments

Comments
 (0)