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

backend: don't even try to connect if port == "0" #5209

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

brong
Copy link
Member

@brong brong commented Jan 10, 2025

This is really annoying me! On my windows box with WSL, it tries to connect to bogus:0 and has slow resolution failures for every JMAP test because JMAP will connect to the smtp server in order to fetch capabilities.

This patch just checks for port == "0" which is always bogus, and returns before calling out to getaddrinfo so it doesn't wait.

@brong brong requested a review from elliefm January 10, 2025 10:22
@brong brong merged commit ad34908 into cyrusimap:master Jan 15, 2025
1 check passed
@elliefm elliefm added the backport-to-3.12 for PRs that are to be backported to 3.12 label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-3.12 for PRs that are to be backported to 3.12
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants