Re: [cgiapp] Streaming Large Files using PSGI

2012-10-12 Thread Mike Tonks
I've been doing some more testing and it seems to work really well. Serving up big files quite happily, and fast! A few additional thoughts... The PSGI spec allows 2 useful options: 1) The subref callback as originally suggested 2) Return a filehandle and the server hadles the streaming

Re: [cgiapp] Streaming Large Files using PSGI

2012-10-12 Thread Mark Stosberg
On 10/12/2012 09:06 AM, Mike Tonks wrote: I've been doing some more testing and it seems to work really well. Serving up big files quite happily, and fast! A few additional thoughts... The PSGI spec allows 2 useful options: 1) The subref callback as originally suggested 2) Return a

Re: [cgiapp] Streaming Large Files using PSGI

2012-10-08 Thread Mike Tonks
Hi Mark, Thanks for the feedback. OK I'll have a go then. Here's my initial attempts... https://github.com/miketonks/CGI--Application https://github.com/miketonks/CGI-Application-Plugin-Stream Does this approach seem ok? mike On 5 October 2012 14:03, Mark Stosberg m...@summersault.com

Re: [cgiapp] Streaming Large Files using PSGI

2012-10-05 Thread Mark Stosberg
This is as far as I've got. Can anyone help / advise? Maybe patching CAP::Stream is the way to go - I suppose it should be possible to detect the running environment and 'do the right thing'. Mike, My reading of the spec is that you can return a callback instead of a body, and the Plack