Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-1661

Stream Management Error for failed resume not consistent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.3
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      If i read the XEP right, a session resume request should always be answered with a 'item-not-found' error, if the session timed out or is non existent for any reason.

      Openfire does throw that error sometimes, but sometimes it also throws 'unexpected-request' which seems weird and i guess there is some other cause than not finding the session for it.

      Its also not just about timeout, i see this error also when the session is not timed out, as in reconnect after 30 seconds.

      could it be that nbxmpp does not wait for the features before it sends the resume? maybe there is some race condition there, maybe OF enables sm after it has sent the features?

       

      Example:

      1/2/2019 18:30:08 (I) nbxmpp.client_nb: raising event from transport: :::::DATA RECEIVED::::
      _____________
      <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj1iaXl6ZFgveER5MEllUk04Uzhibm03dENtQ2c9</success>
      _____________
      
      
      1/2/2019 18:30:08 (I) nbxmpp.client_nb: raising event from transport: :::::DATA SENT::::
      _____________
      <?xml version='1.0'?><stream:stream xmlns="jabber:client" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" to="openfire.net.local" xml:lang="en" >
      _____________
      
      
      1/2/2019 18:30:08 (I) nbxmpp.client_nb: raising event from transport: :::::DATA RECEIVED::::
      _____________
      <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="openfire.net.local" id="102d240a1j" xml:lang="en" version="1.0"><stream:features><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><ver xmlns="urn:xmpp:features:rosterver"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session><sm xmlns='urn:xmpp:sm:2'/><sm xmlns='urn:xmpp:sm:3'/></stream:features>
      _____________
      
      
      1/2/2019 18:30:08 (I) nbxmpp.client_nb: raising event from transport: :::::DATA SENT::::
      _____________
      <resume xmlns="urn:xmpp:sm:3" h="39" previd="Z2FqaW0udmlraW5nADUwdDByajI4eGQ=" />
      _____________
      
      
      1/2/2019 18:30:08 (I) nbxmpp.client_nb: raising event from transport: :::::DATA RECEIVED::::
      _____________
      <failed xmlns='urn:xmpp:sm:3'><unexpected-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></failed>
      _____________
      
      

        Attachments

          Activity

            People

            Assignee:
            dwd Dave Cridland
            Reporter:
            lovetox lovetox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: