#8622: Windows TemporaryFile hangs on write when disk is full
----------------------------------+-----------------------------------------
Reporter: kmtracey | Owner: nobody
Status: new | Milestone:
Component: File uploads/storage | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
----------------------------------+-----------------------------------------
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/8622>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---