I was trying to limit the max connections but couldn't find the method. Does anyone know how to do this?
Asked
Active
Viewed 267 times
1 Answers
3
Probably what you want to do is to set a custom NSURLSessionConfiguration
by creating your own AFURLSessionManager
with initWithSessionConfiguration:
.
The session configuration allows you to set HTTPMaximumConnectionsPerHost
.
If you're using AFHTTPRequestOperationManager
then you can get its operationQueue
and set maxConcurrentOperationCount
on it.

Wain
- 118,658
- 15
- 128
- 151