Response with a big file
Hello all: I have a problem when I try to return a big file (a multimedia file exactly) in a response, i.e. a user request for a file, the a I generate this file and return him with the minimal headers (like content-type, Content-disposition...)... then zope starts to eat CPU time (99%) and spends a lot of time in start to send this response... What can be the problem? I have apache in front of zope 2.5.0. A lot of thanks. -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT ---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com
Antonio Beamud Montero writes:
I have a problem when I try to return a big file (a multimedia file exactly) in a response, i.e. a user request for a file, the a I generate this file and return him with the minimal headers (like content-type, Content-disposition...)... then zope starts to eat CPU time (99%) and spends a lot of time in start to send this response...
What can be the problem? Usually, Zope determines the complete response and only then starts to return anything to the browser.
You can use "RESPONSE.write" to change this. Search the mailing list archives for more advice. Dieter
participants (2)
-
Antonio Beamud Montero -
Dieter Maurer