[backport 3.2] core: bind to all addresses#11607
Merged
sergepetrenko merged 3 commits intorelease/3.2from Jun 27, 2025
Merged
Conversation
Refactor the `struct evio_service` so it contains an rlist of entries which doesn't need to have some fixed size after the creation. The main reason for the change is that we don't know the number of bounded entries for each uri on service creation once #7152 being fixed. Part of #7152 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring (cherry picked from commit 2cf6d3f)
Bind all addresses returned by `getaddrinfo` except for duplicates caused by glibc behavior which is the case on the CI machine and may be the result of multiple `localhost` entries in `/etc/hosts`. Also bind all ipv6 results with the `IPV6_V6ONLY` option so it is possible to listen ipv4 and ipv6 services on a single port number. Fixes #7152 @TarantoolBot document Title: bind all URIs matching the `listen` box configuration parameters. (cherry picked from commit 4c8463c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(This PR is a backport of #11389 to
release/3.2to a future3.2.2release.)Bind all addresses returned by
getaddrinfoexcept for duplicatescaused by glibc behavior which is the case on the CI machine and may be
the result of multiple
localhostentries in/etc/hosts. Also bindall ipv6 results with the
IPV6_V6ONLYoption so it is possible tolisten ipv4 and ipv6 services on a single port number.
Fixes #7152
NO_DOC=bugfix