python - Connection cuts serveing files with mod_wsgi -
i runing apache 2.2 server on linux. using mod_wsgi serve http python code.
when trying serve large file stops @ 95% without rasing exception on server.
curl shows error:
curl: (18) transfer closed 160800 bytes remaining 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 same code in windows working.
what problem?
Comments
Post a Comment