-
I'm investigating an issue where maddy sends a message to a specific address every two minutes, but sometimes has hiccups and delays the message for 5+ minutes. To investigate, I've added Here are logs for two subsequent messages (I removed a few sensitive bits from the logs, and I converted the log lines for the second message to uppercase for visual separation):
What's confusing me here is, I have set Looking at pool.go, it looks like the The other suspicious thing I see in the logs is that the first connection times out ("broken pipe"), but the second connection gets closed gracefully (SMTP code 421). Not sure about this one, it could also be a timeout configuration issue on the recipient server. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
There is no "reusing cached connection", maddy is attempting to send QUIT to close old connection (after correctly marking it as stale) but hangs for 5 minutes due to connection being dead. |
Beta Was this translation helpful? Give feedback.
Pushed 7bdc981 to master that includes several improvements to pool code. This should fix your issue.