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

martian: add graceful close timeout for bicopy #1014

Merged
merged 3 commits into from
Feb 14, 2025
Merged

Conversation

Choraden
Copy link
Contributor

This will prevent the proxy from leaking connections with defective servers.

Given limited resources, this is the best we can do for #800 right now.

That fix cannot be tested due to #1013. Enable the test again once that is fixed.
For now I tested it manually.

Notice that it used to return neterr.Timeout error as closable.
This was wrong as we want to retry on any timeout error.
This is why handle loop checks for maxConsecutiveErrors.
This will prevent the proxy from leaking connections with defective servers.

This cannot be tested due to #1013. Enable the test again once that is fixed.
For now I tested it manually.

Contributes to #800.
@Choraden Choraden force-pushed the hg/bicopy_imp_close branch from b25604c to 5db1cb1 Compare February 14, 2025 13:41
@Choraden
Copy link
Contributor Author

@budziam Changed the log level to info.

@Choraden Choraden merged commit f951fe0 into main Feb 14, 2025
6 checks passed
@Choraden Choraden deleted the hg/bicopy_imp_close branch February 14, 2025 13:51
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