This repository has been archived by the owner on Sep 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve aiohttp usage for ddi (readchunk and timeout)
Replaces read(chunk_size) with readchunk which reads as much as it can. This is the better approach than to choose a chunk_size that works well under all circumstances (HTTP, HTTPS). Also, sets the timeouts properly. Before the context helper didn't do anything since the requests would timeout after 5 minutes anyway. Now, the timeouts are respected as expected. Signed-off-by: Livio Bieri <livio@livio.li>
- Loading branch information
Showing
1 changed file
with
41 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters