This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 MLModel
收信人 MLModel, georg.brandl
日期 2010-03-06.01:43:37
SpamBayes Score 0.00021170391
Marked as misclassified
Message-id <1267839820.97.0.586792235494.issue8077@psf.upfronthosting.co.za>
In-reply-to
内容
I am reluctant to post this because (a) I might have made some dumb mistake in my code, simple as it is, and (b) the problem might be well-known or even hopeless because the cgi module may not be WSGI compliant, but if this isn't going to be fixed then at least the problem should be described in the cgi module documentation.

I run an HTTPServer with a CGIHTTPRequestHandler.
I open an HTML file with a trivial form that simply POSTs an upload of a single file.
I browse, select a file, and click submit.
The web request never completes -- the browser just waits for a response.
Interrupting the server with ^C^C produces a backtrace that indicates it is stuck trying to decode the file contents.

The attached zip file contains:
    cgi-server.py
    cgi-post.html
    cgi-bin/cgi-test.py
    exception.txt
The latter is the backtrace output from when I interrupt the server.

This is on OS X 10.5 with either Python3.1 or Python3.2 from the repository.
历史
日期 用户 动作 参数
2010-03-06 01:43:41MLModel修改recipients: + MLModel, georg.brandl
2010-03-06 01:43:40MLModel修改messageid: <1267839820.97.0.586792235494.issue8077@psf.upfronthosting.co.za>
2010-03-06 01:43:39MLModel链接issue8077 messages
2010-03-06 01:43:37MLModel创建