-
Notifications
You must be signed in to change notification settings - Fork 2.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
lntest: set ReadHeaderTimeout for http client #7715
lntest: set ReadHeaderTimeout for http client #7715
Conversation
My understanding is that there should be a global variable for the ReadHeaderTimeout and this variable should be included as an arg for every occurrence of http.Server. In that way the timeout is configurable. IMO, I think the PR is a good start, just that it does not cover all the instances and the variable is not global per see? Maybe creating another package in the internal folder, where the variable would live would suffice. |
To make it configurable, you need to add a variable to the main LND |
Will work on it soon. |
4eb0c42
to
90c6f6a
Compare
@ellemouton Does this look better? |
@bshramin - looks better but a few things still missing:
|
Thank you, Elle. How are we looking now? |
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.
Thanks for the PR! The commit messages don't have the right format, for reference pls check this link.
9e53b99
to
7812dcf
Compare
@yyforyongyu Thank you for the comments. Is it better now? |
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.
Very close! Could you take a look at the CI? It gives you instructions on what needs to be fixed,
- need to update the sample config
- need to add release notes(0.18.0)
The itests are flakes which can be ignored atm except this one,
--- FAIL: TestLightningNetworkDaemon/tranche02/70-of-135/bitcoind/REST_API/websocket_bi-directional_subscription (59.05s)
Not sure if it's related to this PR.
42aa8e3
to
7812dcf
Compare
10d23c3
to
1b9fb1f
Compare
Thank you for the detailed explanations. Is it better now? |
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.
LGTM🎉
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.
Thanks for the update! Very very close, just three small comments.
e44eadb
to
023e62b
Compare
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.
LGTM, thanks 🎉
023e62b
to
eb907fc
Compare
eb907fc
to
0c64a18
Compare
Change Description
Add ReadHeaderTimeout for HTTP client in lntests.
Fixes #7232
The same code can be found here: https://github.com/lightningnetwork/lnd/blob/master/tls_manager.go#L424
Steps to Test
Pull Request Checklist
Testing
Code Style and Documentation
[skip ci]
in the commit message for small changes.