Skip to content

Commit df8344c

Browse files
committed
change host unavailable logic
1 parent 1de2047 commit df8344c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

QiniuSDK/Http/QNResponseInfo.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ - (BOOL)canConnectToHost{
262262

263263
- (BOOL)isHostUnavailable{
264264
// 基本不可恢复,注:会影响下次请求,范围太大可能会造成大量的timeout
265-
if ((_statusCode >= -2000 && _statusCode <= -1200)
266-
|| _statusCode == 502 || _statusCode == 503 || _statusCode == 504 || _statusCode == 599) {
265+
if (_statusCode == 502 || _statusCode == 503 || _statusCode == 504 || _statusCode == 599) {
267266
return true;
268267
} else {
269268
return false;

0 commit comments

Comments
 (0)