Skip to content

Commit 72c55cf

Browse files
committed
add httpclient pool expired to 3 minutes
1 parent 84be071 commit 72c55cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/qiniu/io/IO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public IO(Client client, String uptoken) {
2929
}
3030

3131
private static Client defaultClient() {
32-
if (mClient != null && System.currentTimeMillis() - mClientUseTime > 60 * 1000) { // 1 minute
32+
if (mClient != null && System.currentTimeMillis() - mClientUseTime > 3 * 60 * 1000) { // 1 minute
3333
mClient.close();
3434
mClient = null;
3535
}

0 commit comments

Comments
 (0)