webXMPP

Check-in [0d418f5fb1]
Login

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

Overview
Comment:Failed idea on dealing with NAT, back out.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:0d418f5fb1a89008310d486d21f544f4d4d9224ad043eea53b65133ada3b1706
User & Date: ajv-899-334-8894@vsta.org 2017-07-01 00:01:52
Context
2017-07-01
00:02
Don't waste data and battery on background long polling if you don't have the ability to post notifications. (On Ubuntu Touch, we instead run a notification daemon.) check-in: 30ef720dc6 user: ajv-899-334-8894@vsta.org tags: master, trunk
00:01
Failed idea on dealing with NAT, back out. check-in: 0d418f5fb1 user: ajv-899-334-8894@vsta.org tags: master, trunk
2017-06-30
05:09
Merge branch 'master' of https://github.com/vandys/-webXMPP check-in: 04a597a22e user: vandyswa@gmail.com tags: master, trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to udp.py.

158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
	    # Hold off on answering until timeout or
	    #  something arrives
	    # Unlike HTTP, we haven't spun up a thread for this
	    #  request, nor would it make sense to do so now.
	    # Instead, we create an instance with a "release"
	    #  method, and will directly answer the request
	    #  from that.
	    # We send back a vacuous "getting" subop to satisfy
	    #  NAT state (if any, but what're the odds?).
	    outpak = self.conn.pong(pak, "getting")
	    self.conn.reply(pak, outpak)
	    log(" queue for reply")
	    replier = Notify_Reply(self, user, pak)
	    user.await(TIMEOUT, replier, None, None)
	    return

	log(" notify unknown subop: " + subop)








<
<
<
<







158
159
160
161
162
163
164




165
166
167
168
169
170
171
	    # Hold off on answering until timeout or
	    #  something arrives
	    # Unlike HTTP, we haven't spun up a thread for this
	    #  request, nor would it make sense to do so now.
	    # Instead, we create an instance with a "release"
	    #  method, and will directly answer the request
	    #  from that.




	    log(" queue for reply")
	    replier = Notify_Reply(self, user, pak)
	    user.await(TIMEOUT, replier, None, None)
	    return

	log(" notify unknown subop: " + subop)