AFNetworking

默认请求超时时长是30s

manager.requestSerializer.timeoutInterval = AFWEBAPI_REQUEST_TIMEOUT;

//取消所有请求

[[[AFURLSessionManager manger]operationQueue] cancelAllOperations];

你可能感兴趣的:(AFNetworking)