Make Apache HttpClient play nice with large kernel socket buffers.
authorElliott Hughes <enh@google.com>
Tue, 3 May 2011 17:55:35 +0000 (10:55 -0700)
committerElliott Hughes <enh@google.com>
Tue, 3 May 2011 17:55:35 +0000 (10:55 -0700)
commite30b5b55806b31d1a61e2885b854dd7b8da1a07a
treed6f777c3a839b7a816782d46a50245854e5f2330
parent403f11d92b25f7c3060b1a973d4076c5d6585ccf
Make Apache HttpClient play nice with large kernel socket buffers.

Given the large maximum size likely to be set for kernel socket buffers on LTE
devices, we need to stop Apache HttpClient from allocating some integer
multiple of that size on the heap for each socket. On one device, 16 HTTP
connections would fill the heap.

Bug: 3514259
Change-Id: I888c03b6ad4b7ca444c2c423b097a3f76390846b
src/org/apache/http/impl/io/SocketInputBuffer.java
src/org/apache/http/impl/io/SocketOutputBuffer.java