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 Side-by-Side Diffs Ignore Whitespace Patch

Changes to udp.py.

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