home / django_tickets / tickets

tickets: 8622

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8622 2008-08-27 21:03:06 2011-09-28 16:12:17 2022-03-06 03:42:44.452357 Unreviewed closed File uploads/storage     dev fixed Exceptions in UploadHandler cause hang I ran across this trying to recreate another problem. On Windows, if I set FILE_UPLOAD_TEMP_DIR to reside on a disk that is nearly out of space, and then use the `django.core.files.uploadhandler.TemporaryFileUploadHandler` to handle uploaded files, file uploads will hang. I changed the implementation of write in the Windows implementation of !TemporaryFile in django/core/files/temp.py to be: {{{ def write(self, s): print 'in TemporaryFile(nt), about to call self.file.write(s)' x = self.file.write(s) print 'in TemporaryFile(nt), back from self.file.write(s)' return x }}} and then when I try the upload (using dev server) I see the first print, but not the second. It's not in a hard loop, the CPU is mostly idle, so it's like its waiting for free space. Clearing space on the disk doesn't wake it up, though. nobody kmtracey   0 1 0 0 0 0
Powered by Datasette · Queries took 1.115ms