Skip to content

[backport 3.2] core: bind to all addresses#11607

Merged
sergepetrenko merged 3 commits intorelease/3.2from
backport/release/3.2/11389
Jun 27, 2025
Merged

[backport 3.2] core: bind to all addresses#11607
sergepetrenko merged 3 commits intorelease/3.2from
backport/release/3.2/11389

Conversation

@TarantoolBot
Copy link
Collaborator

@TarantoolBot TarantoolBot commented Jun 27, 2025

(This PR is a backport of #11389 to release/3.2 to a future 3.2.2 release.)


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
NO_DOC=bugfix

LevKats added 3 commits June 27, 2025 07:42
Fix the indentation in the `struct evio_service` so now any changes
there can meet the checkpatch requirements.

Part of #7152

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring

(cherry picked from commit aba83a4)
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)
@TarantoolBot TarantoolBot requested a review from a team as a code owner June 27, 2025 07:42
@TarantoolBot TarantoolBot changed the title [Backport release/3.2] core: bind to all addresses [backport 3.2] core: bind to all addresses Jun 27, 2025
@coveralls
Copy link

Coverage Status

coverage: 87.418%. first build
when pulling eca61e5 on backport/release/3.2/11389
into 5046682
on release/3.2
.

@sergepetrenko sergepetrenko merged commit 85e3a27 into release/3.2 Jun 27, 2025
23 of 24 checks passed
@sergepetrenko sergepetrenko deleted the backport/release/3.2/11389 branch June 27, 2025 08:35
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.

4 participants