0

I received this packet from client:

  <iq id="dgl8K-24" to="admin@localhost/testchat" from="tp@localhost/testchat" type="error">
    <query xmlns="http://jabber.org/protocol/bytestreams"
           sid="jsi_8684670244487833690"
           mode = "tcp">
      <streamhost jid="proxy.localhost" host="null" port="8086"/>
    </query>
    <error code="404" type="CANCEL">
      <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
      <text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Could not establish socket with any provided host</text>
    </error>
  </iq>

Why is host null?

legoscia
  • 39,593
  • 22
  • 116
  • 167
Manjeet Brar
  • 914
  • 1
  • 9
  • 27

1 Answers1

2

This is an error stanza, that contains a copy of the request that caused the error as per RFC 6120, section 8.3.1, point 6. That means that you sent the original stanza containing host="null", and you got an error reply because the other client couldn't connect to host null.

legoscia
  • 39,593
  • 22
  • 116
  • 167