Visitar URL original
Disable DNS query timeout with zero by ikhoon · Pull Request #13505 · netty/netty · GitHub
Skip to content

Disable DNS query timeout with zero - #13505

Merged
normanmaurer merged 1 commit into
netty:4.1from
ikhoon:zero-disable-timeout
Jul 24, 2023
Merged

normanmaurer merged 1 commit into
netty:4.1from
ikhoon:zero-disable-timeout

Conversation

@ikhoon

@ikhoon ikhoon commented Jul 21, 2023 •

Copy link
Copy Markdown
Contributor

Motivation:

There is no explicit way to disable DNS query timeout. A positive number schedules a timeout and the default timeout is used for non-positive numbers.

Modifications:

  • Use the default query timeout only when queryTimeoutMillis is a negative number.
    • 0 is used to mean no query timeout.

Result:

Users can now disable a query timeout of DnsNameResolver with 0.

Motivation:

There is no explicit way to disable DNS query timeout. A positive number
schedules a timeout and the default timeout is used for non-postive
numbers.

Modifications:

- Use the default query timeout when `queryTimeoutMillis` is a negative
  number.
  - Zero is used as is that does not schedule a query timeout.

Result:

Users can now disable a query timeout of `DnsNameResolver` with `0`.

@normanmaurer normanmaurer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ikhoon thanks a lot

@normanmaurer

Copy link
Copy Markdown
Member

@ikhoon can you please sign our icla and let me know once done ? : https://netty.io/s/icla

@normanmaurer normanmaurer added this to the 4.1.96.Final milestone Jul 22, 2023
@ikhoon

ikhoon commented Jul 23, 2023

Copy link
Copy Markdown
Contributor Author

@ikhoon can you please sign our icla and let me know once done ? : netty.io/s/icla

Done.

@normanmaurer
normanmaurer merged commit e2f71fe into netty:4.1 Jul 24, 2023
normanmaurer pushed a commit that referenced this pull request Jul 24, 2023
Motivation:

There is no explicit way to disable DNS query timeout. A positive number
schedules a timeout and the default timeout is used for non-positive
numbers.

Modifications:

- Use the default query timeout only when `queryTimeoutMillis` is a
negative number.
  - 0 is used to mean no query timeout.

Result:

Users can now disable a query timeout of `DnsNameResolver` with `0`.
@ikhoon
ikhoon deleted the zero-disable-timeout branch July 31, 2023 10:21
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.

2 participants