0

I was trying to limit the max connections but couldn't find the method. Does anyone know how to do this?

Wain
  • 118,658
  • 15
  • 128
  • 151
Keoros
  • 1,337
  • 2
  • 13
  • 23

1 Answers1

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