-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix redirect timeout #685
Fix redirect timeout #685
Conversation
Codecov Report
@@ Coverage Diff @@
## master #685 +/- ##
==========================================
- Coverage 100% 99.31% -0.69%
==========================================
Files 7 7
Lines 579 586 +7
Branches 185 187 +2
==========================================
+ Hits 579 582 +3
- Misses 0 3 +3
- Partials 0 1 +1
Continue to review full report at Codecov.
|
0526624
to
6cdd31e
Compare
Please unit test this. |
0131580
to
40a280a
Compare
@Richienb I'm quite new to codecov so sorry for the noob question. |
@gdoron Since we can't match the exact time specified as the timeout, we should not be exact. |
@Richienb I can remove these lines, and all will keep working. Do you want me to remove this edge-case? |
I'll let another reviewer chime in here. |
Actually removing handling this edge case will cause removing the timeout completely from the next request in case the remaining time is 0, since 0 is a "falsy value". |
Thx for the PR, but as explain in #615, |
@bitinn Are we going to drop |
@Richienb Ok, as it was striked out in the roadmap, I'm going to add it again 😄 |
Thanks for the answer. And anyway, if someone wants the current implementation, Abort Signal won't allow him maintain his current flow once you drop support of I would reconsider, but it's up to you. |
@bitinn did you see my last comment? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gdoron Sorry, I will have to close this PR, the |
Current implementation resets the timeout on every redirect.
It can cause severe issues when the user is willing to wait only for x amount of seconds.
But because the remote server redirects him, he can wait a lot more (maybe even indefinitely)
@bitinn makes sense?