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

Deprecate retry on failure #33

Open
ivy opened this issue Aug 20, 2018 · 1 comment
Open

Deprecate retry on failure #33

ivy opened this issue Aug 20, 2018 · 1 comment

Comments

@ivy
Copy link

ivy commented Aug 20, 2018

As it is now, we only make this attempt when the SMTP client exceeds it's configured read/write deadline. Unfortunately, this feature's been mistaken to also handle server-side timeouts (i.e., when the server disconnects an idle client). I'm sorry to say, that's not a goal of this project as SMTP servers differ too greatly for it to be maintainable (see #15 (comment)).

I believe it was a mistake to have implemented this feature in the first place and I'd like to deprecate it. Instead, users of this library should not rely on this functionality and ensure they're properly checking delivery errors and redialing. Before making any changes, I'd like to leave this issue open to allow some feedback.

@steviesama
Copy link

steviesama commented May 22, 2019

@ivy So I mapped out logging for all the functions called starting with DialAndSend()...I'm about to push it to live...so I won't see the results until the next hangup...but I think this retry feature might be causing an infinite retry recursive loop...

I could be missing it...but I haven't noticed anything that lets it escape...and I am definitely experiencing intermittent hangs...lasting at least 20 minutes before I've restarted the server. It seems to only be if it's a timeout...but it seems to be infinite in that case.

I wouldn't necessarily expect it to time out every single time...but there could be something going on in a dialing instance that perpetuates the timeout...when the go routine I run it from stops responding...I restart the server and it reloads all the email campaign jobs and they send like normal...until the next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants