-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Error thrown every time logout is called #161
Comments
I can not reproduce it. Getting this error means that there is still something in the execution pipeline when the socket is closed. You should check what exactly it is here |
This is my test, and the error appears every time:
This is the request in the pipeline:
|
Which Node version are you using? I'm not able to reproduce this behaviour at all. Logout is always processed before TCP close. |
I am on node v20.10.0 on my machine, but the error also appears in the node:20-alpine container. The server is running dovecot. |
I can confirm that v1.0.148 fixed the issue. FWIW I created a account on a free email service and tried to reproduce with v1.0.147 but couldn't. |
It was a race condition where the TCP close event was processed before the server response message for LOGOUT, so it was not so much about the specific server but timing, which is unpredictable. |
Describe the bug
Every time I call logout() on the client an error is thrown, even though all the actions have been completed successfully.
To Reproduce
Steps to reproduce the behavior:
Versions
Node v20
imapflow v1.0.147
Additional context
Possible cause
The connection is closed before the server has a chance to respond to the logout request.
The text was updated successfully, but these errors were encountered: