Skip to content

Commit 5df1b6a

Browse files
author
yangsen
committed
change cf thread pool
1 parent a863dc8 commit 5df1b6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

QiniuSDK/Http/Request/HttpClient/CFNetwork/QNCFHttpThreadPool.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ + (instancetype)shared {
5656
dispatch_once(&onceToken, ^{
5757
pool = [[QNCFHttpThreadPool alloc] init];
5858
pool.threadLiveTime = 60;
59-
pool.maxOperationPerThread = 1;
59+
pool.maxOperationPerThread = 6;
6060
pool.pool = [NSMutableArray array];
6161
[pool addThreadLiveChecker];
6262
});
@@ -97,6 +97,7 @@ - (QNCFHttpThread *)getOneThread {
9797
[thread start];
9898
[self.pool addObject:thread];
9999
}
100+
thread.deadline = nil;
100101
}
101102
return thread;
102103
}

0 commit comments

Comments
 (0)