Skip to content

Commit

Permalink
Clear the urllib3.PoolManager pool after completing a test (#314)
Browse files Browse the repository at this point in the history
This prevents running out of sockets with very large test suites.
  • Loading branch information
scottwallacesh committed Mar 22, 2022
1 parent 5e76332 commit b01016a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gabbi/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def request(self, absolute_uri, method, body, headers, redirect):
headers = response.headers
headers['status'] = str(status)
headers['reason'] = reason

self.clear()
return headers, content


Expand Down

0 comments on commit b01016a

Please sign in to comment.