-
Notifications
You must be signed in to change notification settings - Fork 36
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
Create timeout
and onidle
clients
#1092
Comments
Can we just use attempts for refresh? |
We can use it instead of |
@Bolodya1997 Could we simply not have the refresh loop check for expiration and terminate the loop locally if it is past expire? |
Yes, it should be better. |
Issue
Currently we have timeout for the initial Request, but we don't have any timeout for the retries to reestablishing the existing Connection. Imagine such case:
Possible solution
We can create
timeout
andcompleted
client chain elements:timeout
- just the same as a servertimeout
chain element, but it has some internal timeout instead ofConn.GetPrevPathSegment()
expiration time.onidle
- just the same as a serveronidle
chain element.In such case client will close all failed Connections on some timeout and after close itself.
The text was updated successfully, but these errors were encountered: