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

fix: prohibit the 'retry' and 'retry_timeout' opts #34

Merged
merged 2 commits into from Jul 27, 2022
Merged

Conversation

terry-xiaoyu
Copy link
Contributor

If the caller sets the retry > 0 when starting the ehttpc,
the down connections will be started by the underlying gun client
periodically.

So if one calls the health_check when gun_state=down,
ehttpc will leak ports because it opens an new TCP connection, but
the old connection was not closed.

We forcely set retry = 0, and prohibit the user from setting
the two opts: retry and retry_timeout.

If the caller sets the `retry > 0` when starting the ehttpc,
the down connections will be started by the underlying gun client
periodically.

So if one calls the health_check when `gun_state=down`,
ehttpc will leak ports because it opens an new TCP connection, but
the old connection was not closed.

We forcely set `retry = 0`, and prohibit the user from setting
the two opts: `retry` and `retry_timeout`.
@terry-xiaoyu terry-xiaoyu force-pushed the no_retry branch 2 times, most recently from 34af25e to e8028b6 Compare July 27, 2022 04:34
@terry-xiaoyu terry-xiaoyu merged commit 56883ac into main Jul 27, 2022
@terry-xiaoyu terry-xiaoyu deleted the no_retry branch July 27, 2022 09:06
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.

None yet

2 participants