Skip to content

Commit

Permalink
Limit max number of connections to log area (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
andmat900 authored Aug 8, 2024
1 parent fcf2767 commit d3cb175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/etos_client/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def __print_traceback(self, value: Exception) -> None:
def run(self) -> None:
"""Run the log downloader thread."""
self.started = True
with ThreadPool() as pool:
# 10 is the default max number of connections in Python requests library
with ThreadPool(10) as pool:
while True:
if self.__exit and not self.__clear_queue:
self.logger.warning("Forced to exit without clearing the queue.")
Expand Down

0 comments on commit d3cb175

Please sign in to comment.