Skip to content

api: fix address already in use error #36

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

themilchenko
Copy link
Contributor

There was a bug when user wants to change server's listen address and reload config on the fly - error address already in use occures.

This patch reworks server's address handling by applying roles' config.

Closes #34

@themilchenko themilchenko marked this pull request as ready for review April 17, 2025 07:26
@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch 3 times, most recently from e763de0 to 25eb1c3 Compare April 17, 2025 11:01
@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch 3 times, most recently from f420690 to 047fafb Compare April 17, 2025 13:27
@themilchenko themilchenko marked this pull request as draft April 17, 2025 14:27
@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch from 047fafb to 66281f8 Compare April 17, 2025 15:12
@themilchenko themilchenko marked this pull request as ready for review April 17, 2025 15:12
@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch 2 times, most recently from 785694c to 0f65466 Compare April 24, 2025 13:55
@themilchenko
Copy link
Contributor Author

I have fixed things we talked before. Now we search for unused servers on each apply and stop it before creating and editing new ones.

PR is ready for the next review.

@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch from 0f65466 to 0181f24 Compare April 24, 2025 13:58
@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch from 0181f24 to a0ea4a1 Compare April 25, 2025 13:03
@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch from a0ea4a1 to f916e64 Compare April 28, 2025 06:52
@themilchenko themilchenko requested a review from DerekBum April 28, 2025 07:23
There was a bug when user wants to change server's `listen` address and
reload config on the fly - error `address already in use` occures.

This patch reworks server's address handling: now it checks if the new
config contains existing servers, and stops unused ones if not.

Closes #34
@themilchenko themilchenko force-pushed the themilchenko/gh-33-fix-address-already-in-use branch from f916e64 to 70f8d6f Compare April 28, 2025 10:35
@themilchenko themilchenko merged commit 7766b44 into master Apr 28, 2025
8 checks passed
@themilchenko themilchenko deleted the themilchenko/gh-33-fix-address-already-in-use branch April 28, 2025 13:02
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.

Address already in use after change listen address
3 participants