【问题标题】:Host="null" in file transfer xmpp文件传输 xmpp 中的 Host="null"
【发布时间】:2014-12-08 12:44:52
【问题描述】:

我从客户端收到了这个数据包:

  <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>

为什么主机为空?

【问题讨论】:

    标签: java xmpp file-transfer openfire smack


    【解决方案1】:

    这是一个错误节,其中包含根据RFC 6120, section 8.3.1, point 6 导致错误的请求的副本。这意味着您发送了包含host="null" 的原始节,但由于其他客户端无法连接到主机null,因此收到了错误回复。

    【讨论】:

      猜你喜欢
      • 2013-01-18
      • 1970-01-01
      • 2011-09-14
      • 2012-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-19
      相关资源
      最近更新 更多