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

config+terminal: allow configuring of lnd RPC timeout #899

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

guggero
Copy link
Member

@guggero guggero commented Nov 7, 2024

Allows the RPC timeout for the single lndclient instance that's given to all subservers to be configured.

Related to lightninglabs/taproot-assets#1177.

Copy link
Member

@ellemouton ellemouton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! this one I think makes sense to add to release notes since it's a new lit config flag 🙏

@dstadulis dstadulis added this to the tapd v0.4.2 milestone Nov 7, 2024
Copy link
Contributor

@ViktorTigerstrom ViktorTigerstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM 🚀! Thanks!

Posting 2 questions below that might be worth addressing.

terminal.go Outdated
@@ -74,6 +74,7 @@ const (

defaultServerTimeout = 10 * time.Second
defaultConnectTimeout = 15 * time.Second
defaultRPCTimeout = 1 * time.Minute
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual default timeout used in lndclient lnd_services.go is 30 seconds:
https://github.com/lightninglabs/lndclient/blob/d89c44c7ef25fdf72c901876b6961ebee7d0c133/lnd_services.go#L30

Would we like to mimic that in litd, or would we specifically like to set it to 1 minute in litd?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is an intentional bump. 30 seconds probably is too low already, especially looking at your other comment. Perhaps we should bump it even more?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying!

Perhaps we should bump it even more?

Yeah maybe it'd make sense to bump it to 2 or 3 minutes even. Though I'd be ok with setting this default to 1 minute for now, and adjust it in future if needed. Feel free to set this to whatever you'd prefer of those alternatives :)!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I bumped it to 3 minutes. Since we'll soon have more involved startup dependencies (lnd -> tapd -> lnd), having more time available to resolve things should help.

terminal.go Show resolved Hide resolved
@guggero guggero force-pushed the lndclient-timeout branch 2 times, most recently from fd7a572 to 5ab7d62 Compare November 8, 2024 08:29
Copy link
Contributor

@ViktorTigerstrom ViktorTigerstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK LGTM 🎉! Thanks for the updates 🙏!

terminal.go Outdated
@@ -74,6 +74,7 @@ const (

defaultServerTimeout = 10 * time.Second
defaultConnectTimeout = 15 * time.Second
defaultRPCTimeout = 1 * time.Minute
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying!

Perhaps we should bump it even more?

Yeah maybe it'd make sense to bump it to 2 or 3 minutes even. Though I'd be ok with setting this default to 1 minute for now, and adjust it in future if needed. Feel free to set this to whatever you'd prefer of those alternatives :)!

terminal.go Show resolved Hide resolved
@guggero guggero merged commit 623a3ee into master Nov 8, 2024
13 checks passed
@guggero guggero deleted the lndclient-timeout branch November 8, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants