8000 feat(smtp/sendMail): Also use timeout as readTimeout by Geod24 · Pull Request #2819 · vibe-d/vibe.d · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(smtp/sendMail): Also use timeout as readTimeout #2819

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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

Geod24
Copy link
Contributor
@Geod24 Geod24 commented Mar 11, 2025

As the connection is more likely to hand on read than connect.

As the connection is more likely to hand on read than connect.
@s-ludwig
Copy link
Member

By the way, in order to avoid the extra work for a dedicated release, assuming that the sending is done from within a task, you should also be able to pretty easily work around the hang using something like this:

auto task = Task.getThis();
auto watchdog = setTimer(30.seconds, { task.interrupt(); });
scope (exit) watchdog.stop();
sendMail(...);

@s-ludwig s-ludwig merged commit deb3695 into vibe-d:master Mar 11, 2025
30 checks passed
@Geod24 Geod24 deleted the mlang/Timeout branch March 11, 2025 13:02
@Geod24
Copy link
Contributor Author
Geod24 commented Mar 11, 2025

Thanks ! It's a simple one-file script so I went with vibe-d: "~master" for now. Didn't realize there was no other comment pending release until I looked at the tags.

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
0