Add tcp buffer size data for ethernet

bug: 16549611
Change-Id: I61d29bb88b9e58c50e03c39570f3ebb7712e4f37
This commit is contained in:
Robert Greenwalt
2014-08-06 22:27:17 -07:00
parent 62e8e4d3d5
commit 84502f5300

View File

@@ -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. */ /* Called by the NetworkFactory on the handler thread. */
public void onRequestNetwork() { public void onRequestNetwork() {
// TODO: Handle DHCP renew. // TODO: Handle DHCP renew.
@@ -281,6 +284,8 @@ class EthernetNetworkFactory {
linkProperties.setHttpProxy(config.linkProperties.getHttpProxy()); linkProperties.setHttpProxy(config.linkProperties.getHttpProxy());
} }
linkProperties.setTcpBufferSizes(TCP_BUFFER_SIZES_ETHERNET);
synchronized(EthernetNetworkFactory.this) { synchronized(EthernetNetworkFactory.this) {
if (mNetworkAgent != null) { if (mNetworkAgent != null) {
Log.e(TAG, "Already have a NetworkAgent - aborting new request"); Log.e(TAG, "Already have a NetworkAgent - aborting new request");