You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "F.Xavier Noria" <fx...@isoco.com> on 2002/03/25 12:02:06 UTC
how to identify an interrupted downloads?
I would like to know whether in the server side one can figure out if a
user has completed the download of a known file. Would bytes_sent() give
the actual number of bytes sent if the download gets interrumpted by the
client? Would yo know a better approach if not?
-- fxn
Re: how to identify an interrupted downloads?
Posted by Issac Goldstand <ma...@beamartyr.net>.
F.Xavier Noria wrote:
>I would like to know whether in the server side one can figure out if a
>user has completed the download of a known file. Would bytes_sent() give
>the actual number of bytes sent if the download gets interrumpted by the
>client? Would yo know a better approach if not?
>
>-- fxn
>
If you send the file in chunks, I suppose you can use $c->aborted every
so often to check... Even if not, you can still use $c->aborted at the
end to check if the connection's still there. That ought to tell you,
although I'm not sure if that it's a fail-saif solution...
Issac