There is not a way to pass the socket options to the HTTPAdapter upon
creation so we have to sub-class it and override the init_poolmanager
method. This also requires at least python-requests 2.4.0 but that
has 2 severe bugs that were fixed in 2.4.1. If we try to fix this
without a hard lower limit, we will not be able to properly set these
options on the socket at creation time.
Reviewed: https:/ /review. openstack. org/120571 /git.openstack. org/cgit/ openstack/ python- novaclient/ commit/ ?id=7713fa0b189 32a00231818ebdb 239493d3b9c714
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7713fa0b18932a0 0231818ebdb2394 93d3b9c714
Author: Ian Cordasco <email address hidden>
Date: Wed Sep 10 15:13:20 2014 -0500
Use TCP Keep-Alive on the socket level
There is not a way to pass the socket options to the HTTPAdapter upon
creation so we have to sub-class it and override the init_poolmanager
method. This also requires at least python-requests 2.4.0 but that
has 2 severe bugs that were fixed in 2.4.1. If we try to fix this
without a hard lower limit, we will not be able to properly set these
options on the socket at creation time.
Change-Id: I06e0d2c67d3197 607e5f23f623c8f ca69e1b23d7
Closes-bug: 1323862