summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-03-14 04:12:54 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-14 04:12:54 +0000
commite67658d6e28a36b4ea5cbebefc80882af1793519 (patch)
tree07e55a4715a07b28d549e18291683a61f0bffaed /services/java
parente0627cf869a4f137b1181572605fcc372be6c7f9 (diff)
parent4ecd833ee35d1120f8c1ae52367947cacfc263a4 (diff)
downloadframeworks_base-e67658d6e28a36b4ea5cbebefc80882af1793519.zip
frameworks_base-e67658d6e28a36b4ea5cbebefc80882af1793519.tar.gz
frameworks_base-e67658d6e28a36b4ea5cbebefc80882af1793519.tar.bz2
am 4ecd833e: am 7baa7c80: Merge "ConnectivityService: add support to set TCP initial rwnd" into klp-dev
* commit '4ecd833ee35d1120f8c1ae52367947cacfc263a4': ConnectivityService: add support to set TCP initial rwnd
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/ConnectivityService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java
index 29a7268..8613fea 100644
--- a/services/java/com/android/server/ConnectivityService.java
+++ b/services/java/com/android/server/ConnectivityService.java
@@ -2760,6 +2760,15 @@ public class ConnectivityService extends IConnectivityManager.Stub {
}
setBufferSize(bufferSizes);
}
+
+ final String defaultRwndKey = "net.tcp.default_init_rwnd";
+ int defaultRwndValue = SystemProperties.getInt(defaultRwndKey, 0);
+ Integer rwndValue = Settings.Global.getInt(mContext.getContentResolver(),
+ Settings.Global.TCP_DEFAULT_INIT_RWND, defaultRwndValue);
+ final String sysctlKey = "sys.sysctl.tcp_def_init_rwnd";
+ if (rwndValue != 0) {
+ SystemProperties.set(sysctlKey, rwndValue.toString());
+ }
}
/**