Ios AFN网络连接丢失错误

Ios AFN网络连接丢失错误,ios,uiimageview,afnetworking-2,Ios,Uiimageview,Afnetworking 2,我有一个UICollectionView,其中每个单元格都有一些数据,如名称、价格和图像。我正在使用setImageWithURLRequest:Placeholder图像:成功:失败:方法从下载像http://serveraddress/images/19/918324402131722.jpg。当我快速滚动时,一切正常。当我快速滚动时,问题就出现了。然后一些(比如说5%的请求)失败并出现错误: Error Domain=NSURLErrorDomain Code=-1005 "The net

我有一个
UICollectionView
,其中每个单元格都有一些数据,如名称、价格和图像。我正在使用
setImageWithURLRequest:Placeholder图像:成功:失败:
方法从
下载像
http://serveraddress/images/19/918324402131722.jpg
。当我快速滚动时,一切正常。当我快速滚动时,问题就出现了。然后一些(比如说5%的请求)失败并出现错误:

Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost."
UserInfo=0x7fafbf64e6c0 {
     NSUnderlyingError=0x7fafbf3d65c0 "The network connection was lost.",
     NSErrorFailingURLStringKey=http://serveraddress/images/19/918324402131722.jpg, 
     NSErrorFailingURLKey=http://serveraddress/images/19/918324402131722.jpg, 
     _kCFStreamErrorDomainKey=1, 
     _kCFStreamErrorCodeKey=54,
     NSLocalizedDescription=The network connection was lost.
}
另外请注意,当单元格再次在屏幕上移动重新加载时,一切正常,图像出现。这是我的密码:

- (ProductCollectionCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {

ProductCollectionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ProductCollectionCellIdentifier forIndexPath:indexPath];

Product *product = _model.products[indexPath.row];
[cell.activityIndicator startAnimating];
@weakify(cell);
[cell.imageView setImageWithURLRequest:[product thumbURLRequest] placeholderImage:nil
                               success:^(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image) {
                                   @strongify(cell);
                                   [cell.activityIndicator stopAnimating];
                                   [cell.imageView setImage:image];

                               } failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error) {
                                   @strongify(cell);
                                   [cell.activityIndicator stopAnimating];
                                   [cell setFailedPlaceholder];
                               }];
return cell;
}
注意:我尝试了在SOF上找到的所有可能和合理的解决方案。 我使用的是AFNetworking 2.4.1版

知道怎么修吗?有可能是服务器故障吗