Skip to content

Better connection check for IMAP #449

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

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

thin-k-design
Copy link
Contributor

Normally the Protocol class only checks if the stream has been created:
return (bool)$this->stream;
But sometimes (we have many clients and transactions) the PHP stream is TRUE even though the connection has been lost. We have tested to send the simple command "NOOP" to check if the connection is really up and have a lot less "empty response" errors in our logs. I have not found a better way to do this.

@Webklex
Copy link
Owner

Webklex commented Apr 11, 2024

Hi @thin-k-design ,
many thanks for your suggested improvements and your pull request!

Best regards & happy coding,

@Webklex Webklex merged commit b916e4e into Webklex:master Apr 11, 2024
@stevebauman stevebauman mentioned this pull request Jan 30, 2025
18 tasks
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

Successfully merging this pull request may close these issues.

2 participants