-
Notifications
You must be signed in to change notification settings - Fork 310
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
Idle client v2 stops receiving new emails in some time. #602
Comments
Since ca0ddb7, |
@emersion Should we also include timeout adjustability regardless, as they won't be able to act on that new information without it? |
A connection can be closed by the server for many reasons, e.g. the server is restarted, or connectivity is lost for a moment. |
@emersion is there any way to handle it ? |
In your code snippet, you can add something like if err := idleCmd.Wait(); err != nil {
log.Fatalf("IDLE command failed: %v", err)
} maybe in a goroutine since you're already blocking with |
I need a service to listening for incoming emails and send them to internal server. It's working but I noticed that in some time like 1 2 days it stops receiving a new emails. In console I don't see any errors. Is there are any way I can check idle client status and if it's failed I can restart client or even just fail client so container with it will be restarted automatically ?
The text was updated successfully, but these errors were encountered: