Le jeudi 5 avril 2007, Martijn Klingens a écrit :
> On Thursday 05 April 2007 10:49, Michael Zanetti wrote:
> > Does anyone have an idea how to create for example a KPassivePopup where
> > the GUI is drawn well, even if the rest of the application hangs?

Hi,  generating the key is performed by the libotr,  and block everything.
I noticed the problem while i was developping mod_otr [1]

> - Don't generate the key in a single go, but make it an interruptable
> method that returns into the event loop quite frequently

Not possible, the key generation code is in the library.

> - Instead of making a high-priority GUI thread, create a low (or even idle)
>    priority generation thread. Be careful with threading though, it's
>    crash-prone if you introduce race conditions and the like.

I think this is the solution:  making a new thread for the creation of they 
key.
(Also, all GUI related stuff must live in the same thread)

> - Do the generation in a separate process, communicate through KProcess
> and/or a pipe.

Not a bad idea, but more complex since libotr is not made for that (but this 
is possible)

> - Optimize the key generation to be less CPU intensive

If libotr could be optimized, let's go :-)

> > So for me this seems to be a problem in the Jabber-protocol-plugin.
> > Please correct me if I'm wrong. I did not have enough time to look into
> > jabber-plugin. I just wanted to ask If this is a known issue and if there
> > is already any work in progress about this.

The problem of empty lines is a known bug that disappears if you disable 
richtext.
I have no idea why SSL change something.


[1] http://ejabberd.jabber.ru/mod_otr

Attachment: pgpbFRJbdmrfe.pgp
Description: PGP signature

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to