diff options
| author | Jeremy Stanley <fungi@yuggoth.org> | 2013-10-02 15:47:58 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-10-02 15:47:58 +0000 |
| commit | fddfa72bdc853a4ae338ef5d62da940199763103 (patch) | |
| tree | 5577f2a69553fb8b6b03b8ab5afb5284ff96b3e2 | |
| parent | c8dfa4b406416cf640e1feaa182a2a5c1ec837c8 (diff) | |
| parent | e6a9f79066943b75e2c60b0165533d5886cc9cd8 (diff) | |
| download | python-neutronclient-fddfa72bdc853a4ae338ef5d62da940199763103.tar.gz | |
Merge "Forcibly clear connection pool after every request"
| -rw-r--r-- | neutronclient/client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/neutronclient/client.py b/neutronclient/client.py index b097703..c1ba8c4 100644 --- a/neutronclient/client.py +++ b/neutronclient/client.py @@ -150,6 +150,11 @@ class HTTPClient(httplib2.Http): # limit, decompression error, etc) into our custom high-level # connection exception (it is excepted in the upper layers of code) raise exceptions.ConnectionFailed(reason=e) + finally: + # Temporary Fix for gate failures. RPC calls and HTTP requests + # seem to be stepping on each other resulting in bogus fd's being + # picked up for making http requests + self.connections.clear() utils.http_log_resp(_logger, resp, body) status_code = self.get_status_code(resp) if status_code == 401: |
