webXMPP

Check-in [4f3cfc408c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Continuing work on dealing with spurious server disconnects
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: 4f3cfc408c7cb8a36d80b6866c383a0d4984ddcd257c179c117d48098c9812ad
User & Date: web 2020-05-31 18:30:27
Context
2020-05-31
22:42
Optimize roster; dumping the whole thing on any single change was a waste of data. Instead, as much as possible send deltas, and let the JS side deal with building the latest selectable destinations (including their ordering). check-in: 3518f8e97d user: web tags: master, trunk
18:30
Continuing work on dealing with spurious server disconnects check-in: 4f3cfc408c user: web tags: master, trunk
2020-05-26
23:44
Some more work getting reconnect flying. Finally just bit the bullet and stop/start'ed prosody while testing various scenarios. check-in: 81431ef981 user: web tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to acct_xmpp.py.

190
191
192
193
194
195
196
197





198
199
200
201
202
203
204
	try:
	    self.conn.send(xmpp.Presence(status=p, show=p))
	    return
	except:
	    # Drop down to try and reconnect
	    pass

	sys.stderr.write("Lost XMPP server connection\n")





	return

    # Fold in roster
    def load_roster(self):
	sys.stderr.write("Loading roster...\n")
	r = self.conn.getRoster()
	buds = set()







|
>
>
>
>
>







190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
	try:
	    self.conn.send(xmpp.Presence(status=p, show=p))
	    return
	except:
	    # Drop down to try and reconnect
	    pass

	sys.stderr.write("Lost XMPP server connection at %s\n" %
	    (time.ctime(), ) )
	try:
	    self.conn.disconnect()
	except:
	    pass
	return

    # Fold in roster
    def load_roster(self):
	sys.stderr.write("Loading roster...\n")
	r = self.conn.getRoster()
	buds = set()