Messages delayed using gpg encryption
I'm experiencing problems communicating with encrypted messages between two gajim clients. For Example, user A is writing an encrypted message to user B who is totally unsuspecting of the upcoming event. Now, the following scenarios occur:
-
Sometimes, the chat window pops up and the incoming message is noticed. This always works with non-encrypted messages.
-
At other times, nothing happens at first. User A is waiting for reply and user B just does not receive the message instantly. If the chat window is already open, nothing happens as well. If chat state notifications are enabled, the message arrives when user A begins typing again. The message also arrives if user A sends another message (the messages then have the same timestamp, but might arrive in wrong order). If user A just waits for reply and otherwise does nothing, the message is delivered somewhere between 30 and 60 seconds after sending. This delay also occurs while being in conversation.
If one of both users uses psi, the encrypted messages are delivered instantly.
Chatlog from user A:
[13:02:22] A: p
[13:02:32] B: ho ho ho
[13:02:43] A: good!
[13:02:55] A: santa?
(pause)
[13:19:35] A: something
[13:20:42] A: something else
Chatlog from user B:
[13:02:22] A: p
[13:02:32] B: ho ho ho
[13:02:55] A: santa?
[13:02:55] A: good!
(pause)
[13:20:30] A: something
[13:21:38] A: something else
Looking at the XML console, the sent message appears instantly at user A, but the console of user B stays empty until the message arrives in the chat window. This might be helpful or not regarding where the console is hooked up.
Both computers are using gpg (GnuPG) 1.4.2 and the same version of gajim (debian unstable 0.9.1-3).
The problem disappears completely if both gajim clients are connected to the server without SSL encryption. (psi has ssl/tls enabled, so this should not be a server problem)
If only one client is connected using SSL connection, the messages sent with this one are most probably (not really sure) also delayed.