FROM : Miguel Arroz
DATE : Mon Apr 25 23:54:06 2005
Hi!
Well, it appears to be working now... the strange thing is that it
takes 1 minute and not 30 seconds to timeout! That's probably why I
thought it was not working.
The sampling useful information is this:
287 +[NSURLConnection sendSynchronousRequest:returningResponse:error:]
287 -[NSURLMonitor wait]
287 _pthread_cond_wait
287 semaphore_wait_signal_trap
287 semaphore_wait_signal_trap
I suspect this is related to DNS, but not sure.
This happens on the following network setup:
ADSL Modem <-a-> PowerMac <-b-> PowerBook
The PowerMac is sharing the Net conntection to the powerbook (via a
seconds Ethernet card) and handles the PPPoE stuff. If I disconnect the
Powerbook from the network, my program immediately returns from the
call and says there was a connection problem. The 1 minute timeout
problem happens when I turn off PPPoE on the PowerMac. The powerbook
still thinks the net is ok (it has DHCP and phisical link) but cannot
communicate.
Anyway, it works, so it's not serious. But it's strange why my 30
seconds turn into 1 minute...
Yours
Miguel Arroz
On 25 de abr de 2005, at 7:32, Markus Hitter wrote:
>
> Am 25.04.2005 um 19:24 schrieb Miguel Arroz:
>
>> I think it never returns.
>
> How about making sure? Put a NSLog right before and right after the
> method send and see wether and when both are called.
>
>> 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.
>
> If you send a message which can take 30 seconds to complete, your GUI
> would hang for this time. The spinning pizza would appear but Progress
> Indicators wouldn't move.
>
> Likely, your problem lies elsewhere.
>
>
> HTH,
> Markus
>
> - - - - - - - - - - - - - - - - - - -
> Dipl. Ing. Markus Hitter
> http://www.jump-ing.de/
>
>
>
>
"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
DATE : Mon Apr 25 23:54:06 2005
Hi!
Well, it appears to be working now... the strange thing is that it
takes 1 minute and not 30 seconds to timeout! That's probably why I
thought it was not working.
The sampling useful information is this:
287 +[NSURLConnection sendSynchronousRequest:returningResponse:error:]
287 -[NSURLMonitor wait]
287 _pthread_cond_wait
287 semaphore_wait_signal_trap
287 semaphore_wait_signal_trap
I suspect this is related to DNS, but not sure.
This happens on the following network setup:
ADSL Modem <-a-> PowerMac <-b-> PowerBook
The PowerMac is sharing the Net conntection to the powerbook (via a
seconds Ethernet card) and handles the PPPoE stuff. If I disconnect the
Powerbook from the network, my program immediately returns from the
call and says there was a connection problem. The 1 minute timeout
problem happens when I turn off PPPoE on the PowerMac. The powerbook
still thinks the net is ok (it has DHCP and phisical link) but cannot
communicate.
Anyway, it works, so it's not serious. But it's strange why my 30
seconds turn into 1 minute...
Yours
Miguel Arroz
On 25 de abr de 2005, at 7:32, Markus Hitter wrote:
>
> Am 25.04.2005 um 19:24 schrieb Miguel Arroz:
>
>> I think it never returns.
>
> How about making sure? Put a NSLog right before and right after the
> method send and see wether and when both are called.
>
>> 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.
>
> If you send a message which can take 30 seconds to complete, your GUI
> would hang for this time. The spinning pizza would appear but Progress
> Indicators wouldn't move.
>
> Likely, your problem lies elsewhere.
>
>
> HTH,
> Markus
>
> - - - - - - - - - - - - - - - - - - -
> Dipl. Ing. Markus Hitter
> http://www.jump-ing.de/
>
>
>
>
"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 mails | Author | Date |
|---|---|---|
| Miguel Arroz | Apr 24, 21:06 | |
| Marc Respass | Apr 25, 17:04 | |
| Miguel Arroz | Apr 25, 19:24 | |
| Becky Willrich | Apr 25, 19:34 | |
| Markus Hitter | Apr 25, 20:32 | |
| Miguel Arroz | Apr 25, 23:54 |






Cocoa mail archive

