mod_perl 1.29: send_fh(): result status?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brian Gorby

    mod_perl 1.29: send_fh(): result status?

    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_downloa d($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
Working...