[Catalyst] Detecting if a user aborted a (long) download

Jeff Chimene jchimene at gmail.com
Mon Mar 12 01:59:08 GMT 2007


Jonathan Rockway wrote:
> On Sunday 11 March 2007 09:26, Thomas Klausner wrote:
>   
>> But how do I figure out if the download was successfull? I didn't find
>> anything in the docs (but a RTFM-answer is appreciated, if I missed the
>> right piece of codocumentation).
>>     
>
> You probably want a subclass of IO::File that will callback into your 
> application as the file is streamed.  Keep in mind that this won't account 
> for buffering between the app and webserver, the webserver and the load 
> balancer, the load balancer and the user's ISP's front-end proxy, the user's 
> ISP's front-end proxy and the user's TCP stack, the user's TCP stack and the 
> web browser, the web browser and disk cache, and finally the disk cache and 
> the user's disk.  Not as simple as it seems, is it? :)
>
> You'd be better off just letting the user download the file as many times as 
> it takes for, say, a week.
>
> Regards,
> Jonathan Rockway
>
>   

How does that differ from something that compares bytes sent to bytes 
received? Assuming that the OP defines success when "bytes received = 
bytes sent"



More information about the Catalyst mailing list