am 4ecd833e: am 1a1703f9: Merge "ConnectivityService: add support to set TCP initial rwnd" into klp-dev

* commit '4ecd833ee35d1120f8c1ae52367947cacfc263a4':
  ConnectivityService: add support to set TCP initial rwnd
This commit is contained in:
JP Abgrall
2014-03-14 04:12:54 +00:00
committed by Android Git Automerger

View File

@@ -2760,6 +2760,15 @@ public class ConnectivityService extends IConnectivityManager.Stub {
} }
setBufferSize(bufferSizes); 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());
}
} }
/** /**