Skip navigation.
 
mlRe: requestWithURL hanging when network is down
FROM : Miguel Arroz
DATE : Mon Apr 25 19:24:48 2005

Hi!

  I think it never returns. The app still runs (windows move, a 
Progress Indicator keeps spinning, etc) but it never returns from the 
requestWithURL call.

  What's strange is that I use the exact same call somewhere else (in a 
background thread) and it works... when the timeout fires, the call 
returns. But on the main thread, it seams like it never returns.

  Yours

Miguel Arroz

On 25 de abr de 2005, at 4:04, Marc Respass wrote:

> Miguel,
>
> What are you doing next? I think NSURLRequest needs to be used with 
> NSURLConnection or NSURLDownload. On my system, docs are 
> file:///Developer/ADC%20Reference%20Library/documentation/Cocoa/
> Conceptual/URLLoadingSystem/index.html
>
> Is your app hanging or just never returning? What else is going on?
>
> Marc
>
> On Apr 24, 2005, at 3:06 PM, Miguel Arroz wrote:
>

>> Hi!
>>
>>  I'm testing requestWithURL with the following call:
>>
>>  [NSURLRequest requestWithURL:[NSURL URLWithString:MY_URL]
>>                 cachePolicy:NSURLRequestReloadIgnoringCacheData
>>              timeoutInterval:30.0]
>>
>>  The problem is that, if I turn off my ADSL modem, the program stays 
>> in this call forever. It does not respect the 30 seconds timeout. Is 
>> this normal? Am I doing something wrong?
>>
>>  Yours
>>
>> Miguel Arroz
>>
>>      "GUERRA E' PAZ
>>        LIBERDADE E' ESCRAVIDAO
>>        IGNORANCIA E' FORCA"      -- 1984
>>
>>  Miguel Arroz - <email_removed> - http://guiamac.com/bagos
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>

>
>


      "I felt like putting a bullet between
        the eyes of every Panda that wouldn't
        scr*w to save its species."      -- Fight Club

  Miguel Arroz - <email_removed> - http://guiamac.com/bagos

Related mailsAuthorDate
mlrequestWithURL hanging when network is down Miguel Arroz Apr 24, 21:06
mlRe: requestWithURL hanging when network is down Marc Respass Apr 25, 17:04
mlRe: requestWithURL hanging when network is down Miguel Arroz Apr 25, 19:24
mlRe: requestWithURL hanging when network is down Becky Willrich Apr 25, 19:34
mlRe: requestWithURL hanging when network is down Markus Hitter Apr 25, 20:32
mlRe: requestWithURL hanging when network is down Miguel Arroz Apr 25, 23:54