Skip to content

Commit fddfa72

Browse files
fungiopenstack-gerrit
authored andcommitted
Merge "Forcibly clear connection pool after every request"
2 parents c8dfa4b + e6a9f79 commit fddfa72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

neutronclient/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ def _cs_request(self, *args, **kwargs):
150150
# limit, decompression error, etc) into our custom high-level
151151
# connection exception (it is excepted in the upper layers of code)
152152
raise exceptions.ConnectionFailed(reason=e)
153+
finally:
154+
# Temporary Fix for gate failures. RPC calls and HTTP requests
155+
# seem to be stepping on each other resulting in bogus fd's being
156+
# picked up for making http requests
157+
self.connections.clear()
153158
utils.http_log_resp(_logger, resp, body)
154159
status_code = self.get_status_code(resp)
155160
if status_code == 401:

0 commit comments

Comments
 (0)