Modify

#766 closed enhancement (duplicate)

OTR: auto reconnect?

Reported by: ilf@… Owned by: pesco
Priority: normal Milestone:
Component: OTR Version: 3.0.1
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:

Description

"Normal" people dis- and reconnect a lot. This breaks OTR sessions. Isn't there a way to auto-reconnect OTR sessions upon their rejoin?

Attachments (0)

Change History (5)

comment:1 Changed at 2011-05-01T16:36:02Z by pesco

this is a tricky topic because you cannot always tell whether the other party killed their client or Mallory interrupted the connection.

i remember spending some time thinking about it when i first wrote the OTR support, but cannot remember whether i came up with a definite answer back then.

there is definately a need for a solution here, because this does get annoying. but it needs some thinkthrough...

comment:2 Changed at 2011-06-08T06:30:58Z by anonymous

Can't just disconnect because an unencrypted message will be sent next. Manual disconnect should occur if the other party connects using a non-otr client. They'll complain that they can't read. When they send that unencrypted message, the real problem is http://bugs.bitlbee.org/bitlbee/ticket/767

comment:3 Changed at 2012-07-27T14:53:07Z by ilf

I thought about this again.

How about an option otr_auto_connect when a Buddy with a known OTR context joins?

Also, more often than not encrypted messages to offline buddies fail for me. BitlBee users seem to be the only ones not constantly dis- and reconnecting :) So if there was an option otr_auto_disconnect when they part (to go with the former), I would gladly enable that.

The solution for mallory interrupting the connection is not keeping the conenction, but verifyinf the fingerprint.

comment:4 Changed at 2013-12-17T16:05:24Z by anonymous

I have a similar problem too. Me and my guys are all using BitlBee with otr. If I wrote with some of them and disconnect then from BitlBee all later send messages a always encrypted and unreadable. We are all using BitlBee 3.2.1.

comment:5 Changed at 2014-02-07T16:28:40Z by pesco

Resolution: duplicate
Status: newclosed

There are multiple issues here.

One is bitlbee not disconnecting its OTR sessions when it loses context (quits) so the other end is confused by future plaintext messages. This should be fixed with #1019.

The second is related to the first; when a buddy loses context (i.e. quits) without sending an OTR disconnect, future encrypted messages to them will produce an error. This should occur less often after #1019. Also, in "opportunistic" mode, this should already trigger an automatic reconnect.

The last issue is a buddy disconnecting OTR (e.g. by quitting) and the bitlbee user trying to send an encrypted message. Bitlbee will refuse, saying "dis- or reconnect". This is mandated by OTR to avoid accidentally sending plaintext. An automatic reconnection in this case would be the topic of #961.

Modify Ticket

Action
as closed The owner will remain pesco.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.