1

i am runing an apache 2.2 server on linux. using mod_wsgi to serve http with python code.

when trying to serve a large file it stops at about 95% without rasing an exception on the server.

curl shows this error:

curl: (18) transfer closed with 160800 bytes remaining to read

the code:

if 'wsgi.file_wrapper' in environ:

    self.body = environ['wsgi.file_wrapper'](self.file, block_size)
else:
    self.body = iter(lambda: self.file.read(block_size), '')

when runing the same code in windows all is working.

what could be the problem?

4

0 回答 0