Skip to content

Commit c96b669

Browse files
alonalbertAndroid (Google) Code Review
authored andcommitted
Merge "DO NOT MERGE - Increasing timeout to 60 sec This was already done in HC branch in this CL: https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=commit;h=d39fd5a97c6f56794a6ed7ac1dfb0bbf585becf1 This is also related to bug http://b/issue?id=3402863 I first considered increasing the timeout specificaly for our GData client but when I saw we already accepted a CL for HC that did this at a lower level, I decided to do that instead." into gingerbread
2 parents 5ff79c3 + 9add122 commit c96b669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/net/http/AndroidHttpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ public static AndroidHttpClient newInstance(String userAgent, Context context) {
108108
HttpConnectionParams.setStaleCheckingEnabled(params, false);
109109

110110
// Default connection and socket timeout of 20 seconds. Tweak to taste.
111-
HttpConnectionParams.setConnectionTimeout(params, 20 * 1000);
112-
HttpConnectionParams.setSoTimeout(params, 20 * 1000);
111+
HttpConnectionParams.setConnectionTimeout(params, 60 * 1000);
112+
HttpConnectionParams.setSoTimeout(params, 60 * 1000);
113113
HttpConnectionParams.setSocketBufferSize(params, 8192);
114114

115115
// Don't handle redirects -- return them to the caller. Our code

0 commit comments

Comments
 (0)