Changes between Initial Version and Version 1 of Ticket #3512


Ignore:
Timestamp:
2020-11-18T18:40:34Z (3 years ago)
Author:
exarkun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3512 – Description

    initial v1  
    11{{{
    22    def init_tempdir(self):
    3         """                                                                                                                                                                                   
    4         Initialize/create a directory for temporary files.                                                                                                                                   
     3        """
     4        Initialize/create a directory for temporary files.
    55        """
    66        tempdir_config = self.config.get_config("node", "tempdir", "tmp")
     
    2020
    2121{{{
    22         # this should cause twisted.web.http (which uses                                                                                                                                     
    23         # tempfile.TemporaryFile) to put large request bodies in the given                                                                                                                   
    24         # directory. Without this, the default temp dir is usually /tmp/,                                                                                                                     
    25         # which is frequently too small.                                                                                                                                                      }}}
     22        # this should cause twisted.web.http (which uses
     23        # tempfile.TemporaryFile) to put large request bodies in the given
     24        # directory. Without this, the default temp dir is usually /tmp/,
     25        # which is frequently too small.
     26}}}
    2627
    2728makes it seem as though this is *only* for Twisted Web intermediate files.  We can fix these in a better way.  `Request.gotLength` and `Site.getContentFile` both give us interfaces to control this behavior in a way that's localized to a single client.