Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(socks): Use non-blocking DNS query in Socks connection process #420

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

0x676e67
Copy link
Owner

@0x676e67 0x676e67 commented Feb 9, 2025

This pull request includes several changes to the src/connect.rs file aimed at improving logging and DNS resolution. The most important changes are:

Logging improvement:

  • src/connect.rs: Modified the logging statement in the ConnectorService implementation to log the URI of the destination instead of the destination itself.

DNS resolution improvement:

  • src/connect.rs: Replaced the use of the ToSocketAddrs trait with tokio::net::lookup_host for asynchronous DNS resolution in the socks module.

Code cleanup:

  • src/connect.rs: Removed the unused import of the ToSocketAddrs trait in the socks module.

@0x676e67 0x676e67 changed the title perf(socks): Socks connection process DNS uses non-blocking query perf(socks): Use non-blocking DNS query in Socks connection process Feb 9, 2025
@0x676e67 0x676e67 merged commit 0d40c75 into main Feb 9, 2025
4 checks passed
@0x676e67 0x676e67 deleted the perf branch February 9, 2025 15:58
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