Skip to content

feat(client): Optionally enable asynchronous DNS resolver#37

Merged
0x676e67 merged 1 commit intomainfrom
feat
Feb 18, 2025
Merged

feat(client): Optionally enable asynchronous DNS resolver#37
0x676e67 merged 1 commit intomainfrom
feat

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

@0x676e67 0x676e67 commented Feb 18, 2025

This pull request introduces several important changes to the rnet project, focusing on the addition of an asynchronous DNS resolver and improvements to the existing codebase. The most significant changes include modifications to the Cargo.toml dependencies, updates to the Client struct to support async DNS, and the addition of a new dns module.

Client Enhancements:

New DNS Module:

  • src/dns.rs: Added a new module to handle DNS resolution with a function to initialize a global DNS resolver using the HickoryDnsResolver and LookupIpStrategy.

Error Handling:

  • src/error.rs: Introduced a new DNSResolverError exception to handle DNS resolver initialization errors.

Parameter Updates:

  • src/param/client.rs: Updated ClientParams to include the async_dns option and modified the FromPyObject implementation to extract this new option. [1] [2]

Module Integration:

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.

1 participant