﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8622	Exceptions in UploadHandler cause hang	Karen Tracey	nobody	"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. "		closed	File uploads/storage	dev		fixed			Unreviewed	1	0	0	0	0	0
