Invalid (trancated) PDFs in Web application

Jouni K. Sepp�nen <jks@...397...> writes:

Torsten Bronger <bronger@...669...> writes:

Does anybody has an idea at which point and why Matplotlib stops
working?

...

        if not self.passed_in_file_object:
            self.fh.close()

I wonder if we should flush a file object that was passed in... Could
you check if the following patch (committed on the trunk) helps with
your problem?