连接错误,等的好漫长,

在连接域名发生错误的时候,这个方法需要很长时间才回调,

- (void)xmppStreamDidDisconnect:(XMPPStream *)sender withError:(NSError *)error

{

    TTLog(@"%@",error);

 

}

xmppStreamDidDisconnect:withError:] [L172] Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo=0xd90a8d0 {NSLocalizedFailureReason=Error in connect() function, NSLocalizedDescription=Operation timed out}

传输中的语音上传:

  [formData appendPartWithFileURL:[NSURLfileURLWithPath:self.accompanyInfo.workPath] name:@"work.mp3"fileName:@"work.mp3"mimeType:@""error:nil];

原文地址:https://www.cnblogs.com/guligei/p/3523638.html