Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Download big file in chunks with plack response

by Thenothing (Acolyte)
on Apr 22, 2021 at 16:12 UTC ( #11131603=note: print w/replies, xml ) Need Help??


in reply to Download big file in chunks with plack response

Thanks to all your participation, I tried what suggested kikuchiyo but the result is like my first code working, I get this error Out of memory

does anyone know some app who has this feature and work with psgi?
  • Comment on Re: Download big file in chunks with plack response

Replies are listed 'Best First'.
Re^2: Download big file in chunks with plack response
by kikuchiyo (Friar) on Apr 22, 2021 at 16:24 UTC

    Ehh, that's what I get for not testing my submission.

    Comment out these lines:

    my $content = path($path_file); my $content_download = $content->slurp;
      Hi, yes I did that before to run.
        What is the exact code that you're running, with which server, and how big is the file you're trying to serve (and how much memory do you have in the machine/VM/smart fridge you're trying this on)?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2022-10-02 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (13 votes). Check out past polls.

    Notices?