Ticket #244 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

s2s tries to reconnect constantly if disconnect with a stream error

Reported by: markdoliner Owned by: smoku
Priority: major Component: General
Version: 2.2.3 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

To reproduce, log into your jabber server and send an IM to test (at) twitter.com. Then watch your s2s log file. It should print these three lines many times per second:

Tue Aug 19 00:25:30 2008 [notice] [99] [128.121.145.167, port=5269] outgoing connection for 'twitter.com'
Tue Aug 19 00:25:30 2008 [notice] [99] [128.121.145.167, port=5269] sending dialback auth request for route 'meebo.org/twitter.com'
Tue Aug 19 00:25:30 2008 [notice] [99] [128.121.145.167, port=5269] error: Stream error (<stream:error xmlns:stream='http://etherx.jabber.org/streams'><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>)

See the attached patch for one possible solution. I'll check it in if people like it.

Attachments

fix_s2s_host_unknown.diff (0.7 KB) - added by markdoliner 3 months ago.

Change History

Changed 3 months ago by markdoliner

Changed 3 months ago by smoku

In [690]: Detecting unrecoverable stream errors on establishing an outgoing s2s connection. Refs #244

Changed 3 months ago by smoku

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

The overral idea of the patch is good.

I reworked it a bit, to not be so strict about the error message format (search a substring instead of whole stanza comparison) and detect more error conditions.

Thanks Mark. :-)

Note: See TracTickets for help on using tickets.