Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As described in issue #22, minreq does not handle timeouts as it implies in the documentation. This commit fixes it by setting the right timeout* for each byte read, if a timeout is specified. * To be specific, it sets each read's timeout to: `initial_request_time + timeout - current_time` Note: this commit might cause some slowdown, as set_read_timeout is called for each byte read. This only applies to requests with a timeout, however.
- Loading branch information
Showing
4 changed files
with
63 additions
and
43 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
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
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
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