Skip to content

Commit

Permalink
Fixed release_conn not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mz06 committed Jan 15, 2024
1 parent 6237e14 commit ef6383a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pytmv1/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
class HTTPConnectionPool(HTTPUrllib):
@typing.no_type_check
def urlopen(self, method, url, **kwargs):
kwargs.pop("preload_content", "")
return super().urlopen(
method, url, pool_timeout=5, release_conn=True, **kwargs
method,
url,
pool_timeout=5,
release_conn=True,
preload_content=False,
**kwargs,
)


Expand Down

0 comments on commit ef6383a

Please sign in to comment.