ConnectivityService: add support to set TCP initial rwnd am: d3bc570b7b
Original change: undetermined Change-Id: I8b4bd1aaf800ce9383637950f4cdc50de86bbf53
This commit is contained in:
@@ -2669,6 +2669,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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user