Set per request socket timeout on reused connections

Even though SoTimeout, TcpNoDelay, and SoLinger can be specified per
request in HttpParams, these values are only set on the underlying
socket in the DefaultRequestDirector when ManagedClientConnection.open
is called to create a new connection. On reused connection, no setting
of Socket options was being done.

There does not seem to be an easy way to fix this without changing one
or more APIs but for the timeout case at least, we can use the fact
that the ManagedClientConnection is an HttpConnection which has a
setSocketTimeout method.

Bug: 3241899
Change-Id: I080147b017b961502b3ba98d40841fea679491eb
1 file changed
tree: b2d1adbee8be1ea7f9dc8637fb559743150b2085
  1. src/
  2. CleanSpec.mk
  3. MODULE_LICENSE_APACHE2
  4. NOTICE
  5. ThirdPartyProject.prop