libURL download failing to notice network loss...

Dave Cragg dave.cragg at lacscentre.co.uk
Tue Oct 16 15:53:39 EDT 2007


Hi Andre

I just did a quick check here.

load url tUrl with message "loaded"

on loaded u, s
  put s & cr & u
  unload url u
end loaded

I get "timeout" returned in the status parameter (s).

But I notice that if you are using libUrlSetStatusCallback to monitor  
this, no error is sent. It seems this failure to send the callback  
message is limited to timeout errors.

Dave

On 16 Oct 2007, at 20:10, Andre Garzia wrote:

> Hello Friends,
>
> I am doing a simple test. Use libURL to download a simple file  
> using load. I
> use load to put the file in the cache. During the transfer, I  
> switch off the
> network hoping that after some interval, libURL will notice that  
> she is
> alone in the world and trigger a timeout or an error in my callback  
> message
> but that never happens. The code just sits there, like nothing is  
> happening.
>
> Any insights?
>
> Andre
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list