Fix deadlock in ASIDownloadCache when server doesn't return any explicit expiration time
Closes gh-102 (Many thanks to LeeMatthewHiggins for catching this)
Showing
2 changed files
with
2 additions
and
1 deletions
| @@ -317,6 +317,7 @@ static NSString *permanentCacheFolder = @"PermanentStore"; | @@ -317,6 +317,7 @@ static NSString *permanentCacheFolder = @"PermanentStore"; | ||
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | // No explicit expiration time sent by the server | 319 | // No explicit expiration time sent by the server |
| 320 | + [[self accessLock] unlock]; | ||
| 320 | return NO; | 321 | return NO; |
| 321 | } | 322 | } |
| 322 | 323 |
| @@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
| 24 | #import "ASIDataCompressor.h" | 24 | #import "ASIDataCompressor.h" |
| 25 | 25 | ||
| 26 | // Automatically set on build | 26 | // Automatically set on build |
| 27 | -NSString *ASIHTTPRequestVersion = @"v1.8-4 2010-11-20"; | 27 | +NSString *ASIHTTPRequestVersion = @"v1.8-10 2010-11-24"; |
| 28 | 28 | ||
| 29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; | 29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; |
| 30 | 30 |
-
Please register or login to post a comment