Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c96b6690 authored by Alon Albert's avatar Alon Albert Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE - Increasing timeout to 60 sec This was already done in HC...

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
parents 5ff79c3b 9add1222
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -108,8 +108,8 @@ public final class AndroidHttpClient implements HttpClient {
        HttpConnectionParams.setStaleCheckingEnabled(params, false);
        HttpConnectionParams.setStaleCheckingEnabled(params, false);


        // Default connection and socket timeout of 20 seconds.  Tweak to taste.
        // Default connection and socket timeout of 20 seconds.  Tweak to taste.
        HttpConnectionParams.setConnectionTimeout(params, 20 * 1000);
        HttpConnectionParams.setConnectionTimeout(params, 60 * 1000);
        HttpConnectionParams.setSoTimeout(params, 20 * 1000);
        HttpConnectionParams.setSoTimeout(params, 60 * 1000);
        HttpConnectionParams.setSocketBufferSize(params, 8192);
        HttpConnectionParams.setSocketBufferSize(params, 8192);


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