Re: [cgiapp] File Streaming

2004-12-02 Thread Tobias Henoeckl
Hi,

thanks to all, the header_type('none') is a much better workaround on
the customer's machines at the moment because it uses the lib as it is.

For the future I'd be glad though a to have more integrated solution.


On Thu, Dec 02, 2004 at 10:55:10AM -0500, Jason Purdy wrote:
 I do some similiar work with huge PDF files, but I haven't really 
 noticed the memory situation.  In my instance script, I use $|++ so the 

Well, err, this customer ships 100-150 MB Zip archives with demo
versions of their bloated Java software ;-)


 I would like to see a more elegant solution, such as your patch and lib 
 idea implemented into cgiapp, as long as the memory situation is taken 
 into consideration and the possibility to provide file specs (size, MIME 
 type, expiration headers, etc).

We could give a named parameter list to that method, providing all
that (optional information).

I've not seen the plugin specs yet (mentioned in the other mail), but
when there's no need to bloat the main package with it, we could supply
other comfort things like a mimetype detection, for example...


Tobias Hoeni Henoeckl

-- 
Tobias HenoecklSpaceNet AG
[EMAIL PROTECTED]  http://www.space.net/   Joseph-Dollinger-Bogen 14
+49 89 32356-215 Fax: +49 89 32356-297   80807 Munich, Germany

-
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
  http://marc.theaimsgroup.com/?l=cgiappr=1w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [cgiapp] File Streaming

2004-12-02 Thread Tobias Henoeckl
On Thu, Dec 02, 2004 at 10:53:59AM -0500, Michael Peters wrote:
 +if (ref($body) ne 'GLOB') {
 +# Support scalar-ref for body return
 +$bodyref = (ref($body) eq 'SCALAR') ? $body : \$body;
 
 One question: if you are just checking for a GLOB, will that catch class 
 based file handles like the IO::* family?

Good point, I never used IO::*, so I can't tell.
Objects of the FileHandle class work fine.


Tobias Hoeni Henoeckl

-- 
Tobias HenoecklSpaceNet AG
[EMAIL PROTECTED]  http://www.space.net/   Joseph-Dollinger-Bogen 14
+49 89 32356-215 Fax: +49 89 32356-297   80807 Munich, Germany

-
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
  http://marc.theaimsgroup.com/?l=cgiappr=1w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]