-
Notifications
You must be signed in to change notification settings - Fork 194
dns prefetch #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dns prefetch #326
Conversation
# Conflicts: # QiniuSDK.xcodeproj/project.pbxproj # QiniuSDKTests/QNFileRecorderTest.m # QiniuSDKTests/QNTestConfig.h
QiniuSDK/Http/Dns/QNDnsPrefetcher.m
Outdated
| @implementation QNDnsPrefetcher | ||
|
|
||
| + (instancetype)shared{ | ||
| static QNDnsPrefetcher *prefethcer = nil; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefethcer => prefetcher
QiniuSDK/Http/Dns/QNDnsPrefetcher.m
Outdated
| NSArray *inetAddressList = self.addressDictionary[inetAddress.hostValue]; | ||
| NSMutableArray *inetAddressListNew = [NSMutableArray array]; | ||
| for (id <QNInetAddressDelegate> inetAddressP in inetAddressList) { | ||
| if (![inetAddressP.ipValue isEqualToString:inetAddressP.ipValue]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??? 肯定相同??
QiniuSDK/Http/Dns/QNDnsPrefetcher.m
Outdated
| return NO; | ||
| } | ||
|
|
||
| - (BOOL)recoderDnsCache{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recoder => recorder ??
| [self setValue:nil forHTTPHeaderField:kQNURLReuestHostKey]; | ||
| } | ||
|
|
||
| NSTimeInterval timestmap = [[NSDate date] timeIntervalSince1970]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timestmap => timestamp
# Conflicts: # QiniuSDKTests/QNTestConfig.h
QiniuSDK/Storage/QNConfiguration.h
Outdated
|
|
||
| @interface QNZone : NSObject | ||
| #define kQNGloableConfiguration [QNGloableConfiguration shared] | ||
| @interface QNGloableConfiguration : NSObject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gloable 应该是 Global ?
| + (instancetype)shared; | ||
|
|
||
| /// 根据name查找事务 | ||
| - (NSArray <QNTransaction *> *)transcationsForName:(NSString *)name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transcation => transaction
| @end | ||
| @implementation QNURLProtocol | ||
|
|
||
| #define kQNReuqestIdentifiers @"QNReuqestIdentifiers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kQNReuqestIdentifiers => kQNRequestIdentifiers
| } | ||
| } | ||
|
|
||
| - (void)handlerAction:(long long)time{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handlerAction => handleAction
No description provided.