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

[#426] Fix a problem in pgagroal_bind #437

Closed
wants to merge 1 commit into from

Conversation

fluca1978
Copy link
Collaborator

If the configuration host is set to *, meaning all the interfaces, the pgagroal_bind function was always returning a true value even if no available bind addresses were left.
In order to fix this, the commit tests if the star_length variable has been set to something non-zero, otherwise no more sockets are available (bound) and the function returns a 1 to indicate an error.

Close #426

If the configuration `host` is set to `*`, meaning all the interfaces,
the `pgagroal_bind` function was always returning a true value even if
no available bind addresses were left.
In order to fix this, the commit tests if the `star_length` variable
has been set to something non-zero, otherwise no more sockets are
available (bound) and the function returns a `1` to indicate an error.

Close agroal#426
@jesperpedersen jesperpedersen self-requested a review April 4, 2024 13:00
@jesperpedersen jesperpedersen added the bug Something isn't working label Apr 4, 2024
@jesperpedersen
Copy link
Collaborator

Rebased and merged.

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple instances can be run if the pid file is specified as a relative path
2 participants