我正在使用XMPP框架进行聊天应用,我正在传输文件[小(2-5 mb),中(20-40 mb),大(80-100 mb)]。现在,问题是,当我尝试发送中等大小的文件时,我继续收到以下错误。有人可以告诉我可能是什么原因或如何解决这个问题?
1. FILE TRANSFER FAILED: Error Domain=XMPPOutgoingFileTransferErrorDomain Code=501 "<feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>" UserInfo=0x175e69d40 {NSLocalizedDescription=<feature-not-
implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/
2. FILE TRANSFER FAILED: Error Domain=Time Out Code=404 "The operation couldn’t be completed. (Time Out error 404.)
3. FILE TRANSFER FAILED: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo=0x1762720c0 {NSLocalizedDescription=Socket closed by remote peer.
答案 0 :(得分:0)
通常当服务器关闭连接时,您会收到此错误/服务器关闭连接时有两个原因: