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

Jkilpatr/add timeouts #29

Merged
merged 3 commits into from
Mar 26, 2024
Merged

Jkilpatr/add timeouts #29

merged 3 commits into from
Mar 26, 2024

Conversation

ch-iara
Copy link

@ch-iara ch-iara commented Mar 26, 2024

Issue #28 resolution

Issue details:
While the contact struct defines a user desired timeout it's not
actually ever used anywhere in the code.

Meaning when we make a grpc connection to a server it's actually
subject to the system tcp socket timeout of a couple of hours.

Behavior wise this is very bad in Rita where payment_validator
currently tries to call the althea payment validation code for every
incoming payment, at which point the code will hang for a few hours
before moving on since there is no server on the other end of that
rpc url (we just moved it) and there is also no shorter timeout set.

In order to resolve this issue every grpc connect, request, and send
method needs to use the tokio timeout routine.
@jkilpatr jkilpatr force-pushed the jkilpatr/add_timeouts branch from a6c98e8 to 8673442 Compare March 26, 2024 22:33
@jkilpatr jkilpatr merged commit 8673442 into master Mar 26, 2024
5 checks passed
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.

2 participants