mod_perl 1.29: send_fh(): result status?

B

Brian Gorby

I'm programming a web application that limits the number of downloads
for clients on certain files:

....
unless ( $r->header_only ) {
$r->send_fd($fh);
$self->record_download($user_id, $file_id);
}
close($fh);

I'd like to be able to have some sort of confirmation that the file was
sent / received in entirety before recording the download; if the
download times out for whatever reason for the client, the download will
not be recorded.

Is this something that's possible in general? with mod_perl?

-Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top