#12601: IMAP: deleting mails on server gets fetcher thread into an infinite loop
-----------------------------------+----------------------------
Reporter: pulkomandy | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Servers/mail_daemon | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-----------------------------------+----------------------------
Comment (by pulkomandy):
Ok, some better analysis of what happens:
* For some reason, the socket IMAP is reading from was disconnected. This
causes Response.cpp to throw an "Unexpected end of stream" exception.
* The exception is caught in the loop in Protocol.cpp which is handling
all responses. It looks like the loop expects socket disconnection to
result in an error code to be returned, and when there is an exception, it
tries to move on to the next command
* Since no command can be executed in this state, it keeps retrying over
and over again to read from the closed socket, and no progress is being
made.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12601#comment:1>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.