From 84502f530060beb56334a9455f95d1b6172b1f5f Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Wed, 6 Aug 2014 22:27:17 -0700 Subject: [PATCH] Add tcp buffer size data for ethernet bug: 16549611 Change-Id: I61d29bb88b9e58c50e03c39570f3ebb7712e4f37 --- .../com/android/server/ethernet/EthernetNetworkFactory.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java b/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java index b1b98d2692..3f0037cccf 100644 --- a/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java +++ b/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java @@ -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");