Skip to content

Commit b9dae5f

Browse files
committed
Revert "Configure URLSession to wait for connectivity"
This reverts commit 7a34318. NSURLSession's waitsForConnectivity also applies to unavailable hosts even when internet connectivity is available. This is undesirable for Vienna, since it means that those connections clog up the connections queue or block it completely if the maximum number of connections is reached (10 by default).
1 parent f7e7104 commit b9dae5f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Vienna/Sources/Fetching/RefreshManager.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ -(instancetype)init
9696
config.HTTPAdditionalHeaders = @{@"User-Agent": userAgent()};
9797
config.HTTPMaximumConnectionsPerHost = 6;
9898
config.HTTPShouldUsePipelining = YES;
99-
config.waitsForConnectivity = YES;
10099
_urlSession = [NSURLSession sessionWithConfiguration:config delegate:self delegateQueue:[NSOperationQueue mainQueue]];
101100

102101
NSNotificationCenter * nc = [NSNotificationCenter defaultCenter];

0 commit comments

Comments
 (0)