6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/25/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12265] IMAP package throws errors
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . . ..__..__. | \\ / || || | |__/ \/ \__||__\|__\
Comment
>>> Looking into the file mentioned in the error message, I found that in >>> both cases the parameter $this->_stream is used, but it is NULL >>> instead of a reasource. What can cause this problem? >> >> Nothing. Logging in would have failed if the connection to the >> server could not be established. Even if the connection is broken >> after logging in, _stream will still be a stream resource. >> >> Unless you did something like update Horde_Imap_Client and had active >> sessions which you should never do. >> >> Finally, maybe its a bug in Courier that has not being tickled until >> now. But at a minimum would need an IMAP log (and I can verify that >> I can access a Courier server without any issues). > > This even occurs some time after a reboot, so it is certtain nothing > in the context of a wrong update procedure. > It seems to happen if the IMAP server has lots of open connections. > > could it happen that the IMAP server invalidates the handle and thus > it is now null? > > The error is located in Imap sockets protected function _readStream() > The reason for the flooded error logs is, that the do-while loop is > infinite if the stream is NULL, since the "break;" is only called > with a vaild stream. > So even it seems to be a rare occassion whrer the strem handle is > NULL, the code should handle such a sittuation correctly. > > have a code proposal ( see attached patch) which handles the NULL > handle correctly. > > Therfore I recommend to check in the loop at first for a null null > handle and exit the loop with break, please see the fix > > 4190,4193d4189 > < if( is_null($this->_stream)) { > < $this->_debug->info("ERROR: Stream is NULL!"); > < break; > < } >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers