No not at all - thanks for the reply and see my answers below:
Spot on I'm just printing a standard tar HTTP response header to stdout followed by a tar file that is being streamed to stdout on the fly, adding each jpeg file at a time.
The amout of data I ultimately receive at the client end is dependant on the speed of the connection, rather than the amount of data I transfer. Depending on the connection...
User Profile
Collapse
-
Using Python/CGI to stream large tar files on the fly with Apache??
Hi,
First of all sorry for the double post - this is on the Python page too, but as far as I can see this is an Apache issue now. Mods - feel free to delete the similar titled posts from me on Python, if this is the case (can't seem to do it myself!).
Anyway,
I'm running a CGI script written in python that tars up the photos in user selected directories (via a form). It's running on Apache 1.3.31.1 on... -
To clarify this is definately not a *byte* limit on streaming.
From my nice fast connection at work, I have no problem downloading 54MB for example, but if I crank it up to a larger 150-odd MB tar it falls over in exactly the same way.
With larger archives I can see as it tries to extract that the initial decompression goes fine - and from what I can see the end of the file is hit unexpectadly.
This does...Leave a comment:
-
Using Python/CGI to stream large tar files on the fly??
Hi,
I'm running a CGI script written in python that tars up the photos in user selected directories (via a form). It's running on Apache 1.3.31.1 on Solaris 5.8.
It works well for a small amount of files, but when I try to use it for large archives (typically over 10MB, but this seems to vary) my download stops short. Occasionally I get an error message, this is usually a Broken Pipe (IO Error 32), but sometimes I...
No activity results to display
Show More
Leave a comment: