Add tcp buffer size data for ethernet
bug: 16549611 Change-Id: I61d29bb88b9e58c50e03c39570f3ebb7712e4f37
This commit is contained in:
@@ -247,6 +247,9 @@ class EthernetNetworkFactory {
|
||||
}
|
||||
}
|
||||
|
||||
private static final String TCP_BUFFER_SIZES_ETHERNET =
|
||||
"524288,1048576,3145728,524288,1048576,2097152";
|
||||
|
||||
/* Called by the NetworkFactory on the handler thread. */
|
||||
public void onRequestNetwork() {
|
||||
// TODO: Handle DHCP renew.
|
||||
@@ -281,6 +284,8 @@ class EthernetNetworkFactory {
|
||||
linkProperties.setHttpProxy(config.linkProperties.getHttpProxy());
|
||||
}
|
||||
|
||||
linkProperties.setTcpBufferSizes(TCP_BUFFER_SIZES_ETHERNET);
|
||||
|
||||
synchronized(EthernetNetworkFactory.this) {
|
||||
if (mNetworkAgent != null) {
|
||||
Log.e(TAG, "Already have a NetworkAgent - aborting new request");
|
||||
|
||||
Reference in New Issue
Block a user