[TIMOB-1042] Regression in HTTPClient/1.3
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | httpclient, iphone |
Reporter | Damien Elmes |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:42:18.000+0000 |
Updated | 2011-04-17T01:55:02.000+0000 |
Description
My code is accessing a web service which compresses a large file then sends it over the wire gzipped. It takes about 20 seconds for the web service to reply. More often than not, the download fails when running on 1.3 (it works fine on 1.2.0). It seems the first few packets come in (ondatachange is called a few times), then an exception is raised. Timeout on the connection is set to 2 minutes, well above the time it takes to fail.
I ran the program in a debugger and got the following backtrace:
#0 0x9738e4e6 in objc_exception_throw ()
#1 0x02a04c3b in +[NSException raise:format:arguments:] ()
#2 0x02a04b9a in +[NSException raise:format:] ()
#3 0x004aecc9 in _NSArrayRaiseBoundException ()
#4 0x0044c2e5 in -[NSCFArray insertObject:atIndex:] ()
#5 0x0044c284 in -[NSCFArray addObject:] ()
#6 0x00035a3a in -[KrollBridge registerProxy:] (self=0x5322c00,
_cmd=0x91e26897, proxy=0x5374be0) at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/KrollBridge.mm:455
#7 0x0008690b in -[TiProxy _initWithPageContext:] (self=0x5374be0,
_cmd=0x296ac0, context=0x5322c00) at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/TiProxy.m:208
#8 0x00089e0d in -[TiNetworkHTTPClientResultProxy initWithDelegate:]
(self=0x5374be0, _cmd=0x9729fe90, proxy=0x50316d0) at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/TiNetworkHTTPClientResultProxy.m:34
#9 0x0008c2ed in -[TiNetworkHTTPClientProxy setProgress:upload:]
(self=0x50316d0, _cmd=0x28e84d, value=0.0317440554, upload=0 '\000')
at /Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/TiNetworkHTTPClientProxy.m:443
#10 0x029c072d in __invoking___ ()
#11 0x029c0618 in -[NSInvocation invoke] ()
#12 0x029e5158 in -[NSInvocation invokeWithTarget:] ()
#13 0x0000fb6c in +[ASIHTTPRequest
setProgress:forProgressIndicator:upload:] (self=0x2e1c00,
_cmd=0x28f216, progress=0.031744055987380317, indicator=0x50316d0,
upload=0 '\000') at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/ASI/ASIHTTPRequest.m:1285
#14 0x0000f711 in -[ASIHTTPRequest updateDownloadProgress]
(self=0x5031950, _cmd=0x28d587) at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/ASI/ASIHTTPRequest.m:1226
#15 0x0000e884 in -[ASIHTTPRequest updateProgressIndicators]
(self=0x5031950, _cmd=0x28d5fb) at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/ASI/ASIHTTPRequest.m:1024
#16 0x0000def9 in -[ASIHTTPRequest loadRequest] (self=0x5031950,
_cmd=0x28d65a) at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/ASI/ASIHTTPRequest.m:915
#17 0x0000b79f in -[ASIHTTPRequest main] (self=0x5031950,
_cmd=0x9736ec8e) at
/Users/ema/Desktop/mobanki/Anki/build/iphone/Classes/ASI/ASIHTTPRequest.m:516
#18 0x004bdb25 in -[NSOperation start] ()
#19 0x00450f7d in -[NSThread main] ()
#20 0x00450b18 in __NSThread__main__ ()
#21 0x92a7ba19 in _pthread_start ()
#22 0x92a7b89e in thread_start ()
Current language: auto; currently objective-c
Attachments
File | Date | Size |
---|---|---|
shot.png | 2011-04-15T02:42:19.000+0000 | 418989 |