Changes between Initial Version and Version 1 of Ticket #3512
- Timestamp:
- 2020-11-18T18:40:34Z (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3512 – Description
initial v1 1 1 {{{ 2 2 def init_tempdir(self): 3 """ 4 Initialize/create a directory for temporary files. 3 """ 4 Initialize/create a directory for temporary files. 5 5 """ 6 6 tempdir_config = self.config.get_config("node", "tempdir", "tmp") … … 20 20 21 21 {{{ 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 }}} 26 27 27 28 makes 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.