Instance Property

HTTPMaximumConnectionsPerHost

The maximum number of simultaneous connections to make to a given host.

Declaration

@property NSInteger HTTPMaximumConnectionsPerHost;

Discussion

This property determines the maximum number of simultaneous connections made to each host by tasks within sessions based on this configuration.

This limit is per session, so if you use multiple sessions, your app as a whole may exceed this limit. Additionally, depending on your connection to the Internet, a session may use a lower limit than the one you specify.

The default value is 6 in macOS, or 4 in iOS.

See Also

Setting HTTP Policy and Proxy Properties

HTTPShouldUsePipelining

A Boolean value that determines whether the session should use HTTP pipelining.

connectionProxyDictionary

A dictionary containing information about the proxy to use within this session.