-
Notifications
You must be signed in to change notification settings - Fork 29
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
Timeout configuration #11
Comments
@john-griffin Right now there is no way to change the configuration of the request being made to Postmark. But it sounds like something that might be useful, I'll add it during the weekend. Will keep you posted. |
@pablo-co thanks Pablo! |
This feature was introduced in #12. |
For quick reference, you can specify the timeout like this: config :my_app, MyApp.Mailer,
adapter: Bamboo.PostmarkAdapter,
request_options: [recv_timeout: 10_000] # 10 seconds |
@pablo-co thanks, that looks perfect 😃 |
Would this be the cause of Seeing this error sometimes, and the email doesn't send, stacktrace:
|
We didn't see that error, it was an explicit timeout error such as below:
|
Seeing the following now:
But I've set a high timeout. |
@joshuataylor There is an issue related to this misunderstanding.
So to fix it add config :my_app, MyApp.Mailer,
adapter: Bamboo.PostmarkAdapter,
request_options: [recv_timeout: 10_000, connect_timeout: 10_000] # 10 seconds |
Ah! That's obvious when pointed out, thank you so much for the explanation @pablo-co . Have you seen this at all? Could be because our servers are located in Australia, and could have minor latency spikes. |
It is the first time I have seen such an error actually happening, so that's a first. My guess is that there is probably an ISP in the middle causing the spikes. If you are inclined to find out if that is the case you can use traceroute whenever you see the spikes happening. 👍 |
We occasionally see timeouts when sending to the Postmark API. Is there a way to configure the max allowed timeout? Couldn't see an obvious way of doing it. Thanks! 😄
The text was updated successfully, but these errors were encountered: