Skip to content

Conversation

@chobits
Copy link
Member

@chobits chobits commented Nov 28, 2022

If one upstream server with hostname has multiple static addresses, dynamic resolve module will resolve hostname multiple times wrongly with some dns error.

Try to fix #1709.
More details, see #1709 (comment)

If upstream one server has multiple static addresses, dynamic resolve module
will resolve hostname multiple times wrongly with some dns error.
Copy link
Collaborator

@wangfakang wangfakang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wangfakang wangfakang merged commit 2097e19 into alibaba:master Nov 28, 2022
@chobits chobits added this to the 2.3.5 milestone Nov 29, 2022
host = server[i].host;
if (ngx_inet_addr(host.data, host.len) == INADDR_NONE) {
if (server[i].naddrs > 1) {
server[i].naddrs = 1;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its tricky, but makes no changes to nginx core.

@chobits chobits modified the milestones: 2.3.5, 2.4.0 Feb 8, 2023
chobits added a commit to chobits/tengine that referenced this pull request Aug 4, 2023
If upstream one server has multiple static addresses, dynamic resolve module
will resolve hostname multiple times wrongly with some dns error.
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.

dynamic_resolve.t: request hangs forever

2 participants