[Kde-pim] imap resource deadlocks on socket error
"Stefan BrĂ¼ns"
Stefan.Bruens at rwth-aachen.de
Wed Nov 28 16:22:31 GMT 2012
Am 16.11.12, schrieb David Faure <faure at kde.org>:
> The "automatic fallback for SSL/TLS protocol versions" commit (d8eeb4cb0c0c7 in kdepimlibs) leads to the following deadlock due to a non-recursive mutex being locked recursively (in a single thread).
>
> ...
> In other words, the disconnectFromHost() leads to reconnect() in the same class,
> and the mutex is already locked => deadlock.
>
> Maybe this code should call locker.unlock() before disconnectFromHost()?
> Unless the disconnectFromHost() wasn't meant to end up calling reconnect()?
The reconnect() triggered by disconnectFromHost() is intended behaviour, whereas calling it synchrounously is not. I did not expect the disconnected() signal to be triggered synchrounously.
locker.unlock() is most probably the right thing to do.
Can you do this, or shall I?
Regards,
Stefan
_______________________________________________
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