• Dave Cridland's avatar
    OF-1402 XEP-0198 resumption (#872) · 6286c4ac
    Dave Cridland authored
    * WIP: XEP-0198 Stream Resumption
    
    This patch implements a first cut of XEP-0198
    Stream Resumption for TCP and WebSockets.
    
    This appears to work on (very) basic testing, but
    the code is very likely to run into problems with
    existing code assuming that LocalSession.getConnection()
    never returns null, and similar issues.
    
    This is likely to generate unexpected (and
    possibly unhandled) NPEs.
    
    The basic premise to the design is that
    StanzaHandlers (or similar) and Connections
    from the new session are re-pointed to the old
    session. The old session lives on in limbo with its
    conn field set to null during detachment.
    
    I strongly suspect that bits are missing from this,
    but so far...
    
    * Fix CR/LF
    
    * WIP
    
    * WIP
    
    * Close detached 198 sessions after timeout
    
    Also:
    * Quick audit of LocalSession.getConnection
    * Add in guard code for LocalSession.getConnection
    
    * CRLF
    
    * CRLF
    6286c4ac
Name
Last commit
Last update
build Loading commit data...
dbutil Loading commit data...
documentation Loading commit data...
i18n Loading commit data...
src Loading commit data...
starter Loading commit data...
webadmin Loading commit data...
webadmintld Loading commit data...
xmppserver Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
Dockerfile Loading commit data...
LICENSE.txt Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...