webXMPP

Check-in [cb9a7146c6]
Login

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

Overview
Comment:A little debug help on our UDP proto when we hit an exception
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:cb9a7146c64bc31e2a299096b6d9170c1f7390dfba09f1b1d40f07108e83d6c2
User & Date: web 2019-12-07 17:25:10
Context
2019-12-07
17:47
Don't needlessly rev roster for SMS incoming. Field XMPP and add to roster if needed. In support of jmp.chat routed SMS. check-in: 49fc248b90 user: web tags: master, trunk
17:25
A little debug help on our UDP proto when we hit an exception check-in: cb9a7146c6 user: web tags: master, trunk
17:24
Be smarter on auth failure/re-login check-in: 8eef10cfa6 user: web tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to udp.py.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
...
123
124
125
126
127
128
129
130


131
132
133
134
135
136
137
#
# udp.py
#	Handle UDP based push notifications
#
# (This is the server side, running in the cloud.)
#
import sys
from chore import pong
import pdb

# During startup, get configured long polling interval
#  for timeouts.
TIMEOUT = None

................................................................................
	#  and send
	outpak = self.conn.pong(inpak, "got", resp)
	self.conn.reply(inpak, outpak)

    def notifications(self, user, pak):
	try:
	    self._notifications(user, pak)
	except:


	    log("Response assembly to %s failed" % (user.name,))

    # Notification operations
    def handle_notify(self, pak):
	inner = pak.inner
	subop = inner["subop"]







|







 







|
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
...
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#
# udp.py
#	Handle UDP based push notifications
#
# (This is the server side, running in the cloud.)
#
import sys, traceback
from chore import pong
import pdb

# During startup, get configured long polling interval
#  for timeouts.
TIMEOUT = None

................................................................................
	#  and send
	outpak = self.conn.pong(inpak, "got", resp)
	self.conn.reply(inpak, outpak)

    def notifications(self, user, pak):
	try:
	    self._notifications(user, pak)
	except e:
	    log("_notifications exception %s" % (e,))
	    traceback.print_exc()
	    log("Response assembly to %s failed" % (user.name,))

    # Notification operations
    def handle_notify(self, pak):
	inner = pak.inner
	subop = inner["subop"]