Re: Return a 200 0K status and send the content of the request later
Vincent Veyron <[email protected]> Fri, 16 May 2025 02:09:34 +0200
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 16 May 2025 01:11:48 +0200 Vincent Veyron <[email protected]> wrote: > > I have a working prototype > Well, scratch that, it does work on a slow spinning disk, not on SSD :-\ Also, I'm getting something strange when testing for the presence of a file before removing it, as in : if ( -e $r->document_root() . '/base/listing/' . $r->pnotes('session')->{_session_id} . '.tar.gz' ) { warn 'tar file detected' ; my @args = ( 'rm', $r->document_root() . '/base/listing/' . $r->pnotes('session')->{_session_id} . '.tar.gz' ) ; system(@args) == 0 or warn "system @args failed: $?" ; } else { warn 'tar file NOT detected' ; } error_log shows : tar file detected at /home/lib/Marica/Base/Rapports/export_raw_data.pm line 67. tar file NOT detected at /home/lib/Marica/Base/Rapports/export_raw_data.pm line 75. ? Not sure what's wrong, but I'll have to work on this some more. -- vv.lists <[email protected]>