in reply to Dancer as a proxy
Take a look at PSGI and what it says about streaming responses. I don't know if Dancer properly supports streaming, but only because I haven't looked at it closely enough.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dancer as a proxy
by Anonymous Monk on May 10, 2013 at 03:54 UTC | |
streaming support depends on the webserver as much as the framework , and a grep http://search.cpan.org/grep?cpanid=YANICK&release=Dancer-1.3113&string=streaming&i=1&n=1&C=3 shows Dancer higher than 1.3072 supports streaming Streaming data using dancer, Re^3: Resume downloads, Re^2: file download with connection problems, http://search.cpan.org/perldoc/Dancer#send_file This was really hard to write as the documentation has holes on this, there are no tests on this in test suite, and Dancer hides the errors from these callbacks, so you have to eval { ...; 1 } or warn $@;
| [reply] [d/l] |
by gsiems (Deacon) on May 14, 2013 at 21:56 UTC | |
Thank you Anonymous Monk! I did need to change it a bit to make it work as I was having issues getting the headers information and things appear to working rather nicely now. For future reference, and in case others find it useful, the modified send_file is:
| [reply] [d/l] |