Ticket #1548 (reopened defect)

Opened 3 years ago

Last modified 6 months ago

Messages delayed using gpg encryption

Reported by: Wollschaf Owned by: asterix
Priority: normal Milestone:
Component: None Version: 0.11.1
Severity: major Keywords: gpg encryption delayed
Cc: OS: All

Description

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.

Attachments

Change History

  Changed 2 years ago by nk

  • milestone set to 0.10

can you reproduce this behaviour with SVN?

  Changed 2 years ago by asterix

  • status changed from new to closed
  • resolution set to worksforme

  Changed 2 years ago by Wollschaf

  • status changed from closed to reopened
  • resolution changed from worksforme => * milestone: 0.10 to 0.10.1

I'm sorry, but I forgot about the issue. I sadly do not have the time to

compile gajim with fresh SVN code.

I still have the problem with 0.10.1-6 from debian unstable, but only using jabber.ccc.de as server. It works perfectly with two jabber.org accounts. Sending to a jabber.org account using jabber.ccc.de as server also introduces the lag, while the other way round the connection is flawless.

So one might assume that the server is the problem - but packet logging with ethereal revealed that the delayed packets are not sent for a long while, and then operation resumes to normal (send packet -> 1-9 sec delay (traffic, decryption) -> receive message). As if finally a timeout occurs...

sending client -> receiving client; Synchronized clocks. Slight lag due to high traffic... huge lag because of the mysterious bug, marked with (!)

[14:54:36] sender: 1 [14:54:36] sender: 1

[14:54:37] sender: 2 [14:54:38] sender: 2

[14:54:38] sender: 3 [14:54:40] sender: 3

[14:54:38] sender: 4 [14:54:42] sender: 4

[14:54:40] sender: 5 [14:55:26] sender: 5 (!)

[14:55:36] sender: 6 [14:55:43] sender: 6

[14:55:36] sender: 7 [14:55:45] sender: 7

[14:55:36] sender: 8 [14:55:56] sender: 8

[14:55:53] sender: 9 [14:55:58] sender: 9

[14:55:54] sender: a [14:56:00] sender: a

[14:55:54] sender: b [14:56:22] sender: b (!)

In one case, typing notification triggered sending of the last missing message. In another case - not. Sending of the missing message is always triggered by sending another one, or sometimes two.

So... I'll keep an eye on this from now on. Sorry again. And thanks.

  Changed 2 years ago by nk

  • status changed from reopened to closed

no need to compile anything to use svn. just see downloads on gajim.org on

how to use svn

  Changed 2 years ago by Wollschaf

Silly me. Of course, it's python. No hassle installing many libs, devs,

and fighting with the linker. Certainly a better way to fix bugs.

The problem persists with 0.10.1.3 from SVN today.

follow-up: ↓ 8   Changed 16 months ago by anonymous

  • status changed from closed to reopened
  • resolution worksforme deleted

The problem still persists with 0.11.1 (debian testing).

I think the ticket should not be closed therefore?

It doesn't occur with all servers though, I can confirm the problem using the jabber.ccc.de server, while using the mabber.de server I can't see any relevant delay. Maybe it is connected with the jabber server used (jabberd1.4 in the case of jabber.ccc.de, ejabberd in the case of mabber.de)?

I can see delays up to several minutes even.

One more remark, I am *not* using SSL.

thanks florian

  Changed 16 months ago by anonymous

  • keywords ssl removed
  • summary changed from Messages delayed using gpg encryption over ssl connection to server to Messages delayed using gpg encryption
  • version changed from 0.10.1 to 0.11.1
  • milestone 0.10.1 deleted

in reply to: ↑ 6   Changed 9 months ago by steve-e

  • os set to All

It doesn't occur with all servers though, I can confirm the problem using the jabber.ccc.de server, while using the mabber.de server I can't see any relevant delay. Maybe it is connected with the jabber server used (jabberd1.4 in the case of jabber.ccc.de, ejabberd in the case of mabber.de)?

I don't see anything gajim can do wrong here. Jabber.ccc.de has not been that reliable those days.

Add/Change #1548 (Messages delayed using gpg encryption)

Author



Change Properties
<Author field>
Action
as reopened
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
 
Note: See TracTickets for help on using tickets.