[Kde-pim] Review Request 109195: KIMAP: Handle unrequested BYE response
Kevin Ottens
ervin at kde.org
Wed Feb 27 16:29:35 GMT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109195/#review28211
-----------------------------------------------------------
Are you sure the server doesn't close the socket after the BYE response? I would find that surprising and outrageous from the server implementation. :-)
- Kevin Ottens
On Feb. 27, 2013, 4:16 p.m., Dan Vrátil wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109195/
> -----------------------------------------------------------
>
> (Updated Feb. 27, 2013, 4:16 p.m.)
>
>
> Review request for KDEPIM-Libraries.
>
>
> Description
> -------
>
> We have a Zimbra IMAP server that simply sends "BYE" after some time (don't know why or after what period), which seems to surprise KIMAP :-) When this happens, I can see
>
> A message was received from the server with no job to handle it: "* BYE X.Y.Z.redhat.com Zimbra IMAP4rev1 server closing connection "
>
> in console and when the IMAP resource tries to check emails after that, it crashes because KIMAP::Session expects socketTimer to be inactive, but because nobody handled the "BYE" response, nobody deactivated it.
>
> I tried adding some handling for "BYE" response to Session::responseReceived() and now the crash is gone and when the "BYE" command arrives, the resource automatically tries reconnect.
>
> ImapIdleManager::reconnect: attempting to reconnect IDLE session
>
>
> This addresses bug 310887.
> http://bugs.kde.org/show_bug.cgi?id=310887
>
>
> Diffs
> -----
>
> kimap/session.cpp 4a43ac5
>
> Diff: http://git.reviewboard.kde.org/r/109195/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Dan Vrátil
>
>
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list