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

v1: logout call stucks and no return #547

Open
c4r3 opened this issue Oct 2, 2023 · 0 comments
Open

v1: logout call stucks and no return #547

c4r3 opened this issue Oct 2, 2023 · 0 comments

Comments

@c4r3
Copy link

c4r3 commented Oct 2, 2023

Hi,
i created a small client wrapper with the following snippet for the fetching function:

go func() {
        if err := imapClient.Fetch(seqSet, items, messages); err != nil {
            log.Fatal(err)
        }
    }()

It works like a charm.
I added also a watchdog goroutine that collects sigint and sigterm event to manage a graceful shutdown feature.
When the shutdown goroutine call the logout function on the imapClient it hangs.
BTW the "imapClient" is a reference of the singleton IMAP client.
Any suggestion? I don't want closing the "messages" channel and manage the corresponding error, it's awful...

@emersion emersion changed the title Logout call stucks and no return v1: logout call stucks and no return Oct 2, 2023
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

No branches or pull requests

1 participant