Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds configurable timout feature #62

Merged
merged 4 commits into from
Sep 7, 2021
Merged

adds configurable timout feature #62

merged 4 commits into from
Sep 7, 2021

Conversation

SiddharthV1
Copy link
Contributor

@SiddharthV1 SiddharthV1 commented Aug 28, 2021

added timeout to Proxy.Conf, Http Client handles timeout via a new added dependency 'hyper-timeout' and and fetch handles std timeout error propagated by hyper-timeout to hyper , the inbuilt errors of hyper for timeout and its accompanying function is_timeout() don't work with hyper-timeout . closes #56.

* added timeout to Proxy.conf
* Http Client handles timeout
* added TimeoutError to errors.rs
@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2021

Codecov Report

Merging #62 (0f4cead) into main (95dcc7b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #62   +/-   ##
=======================================
  Coverage   55.35%   55.35%           
=======================================
  Files           4        4           
  Lines         336      336           
  Branches       94       94           
=======================================
  Hits          186      186           
  Misses         70       70           
  Partials       80       80           

src/http/mod.rs Show resolved Hide resolved
src/http/mod.rs Outdated Show resolved Hide resolved
@bhaskarkishore
Copy link
Contributor

Since we are using one single number for different timeouts, I suggest we test properly to see if it works as intended. For example, fetching a large file may take a minute or two, that should not timeout if progress is being made.

src/http/mod.rs Outdated Show resolved Hide resolved
src/http/mod.rs Outdated Show resolved Hide resolved
src/error.rs Outdated Show resolved Hide resolved
src/rpc/error.rs Outdated Show resolved Hide resolved
bhaskarkishore
bhaskarkishore previously approved these changes Sep 6, 2021
Taaseen-Ali
Taaseen-Ali previously approved these changes Sep 7, 2021
@bhaskarkishore bhaskarkishore dismissed stale reviews from Taaseen-Ali and themself via 0f4cead September 7, 2021 11:15
@bhaskarkishore bhaskarkishore merged commit d756998 into main Sep 7, 2021
@bhaskarkishore bhaskarkishore deleted the feature/timeout branch November 11, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request timeouts should be configurable
4 participants