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

Commit c7b594e9 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by Steve Kondik
Browse files

http: Customize number of fetching threads

Make number or http threads customizable.
Introduce system property "http.threads" that evaluated
on the framework load.

Change-Id: I177a3e0fd7354f96d2290eef5810f93f05d6fcfa
parent 0528d386
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2006 The Android Open Source Project
 * Copyright (C) 2011, Code Aurora Forum. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -66,7 +67,7 @@ public class RequestQueue implements RequestFeeder {
    private BroadcastReceiver mProxyChangeReceiver;

    /* default simultaneous connection count */
    private static final int CONNECTION_COUNT = 4;
    private static final int CONNECTION_COUNT = SystemProperties.getInt("http.threads", 4);

    /**
     * This class maintains active connection threads