Closed GoogleCodeExporter closed 9 years ago
With the way that WSGI 1.0 specification is written, an application can't
actually
support chunked transfer encoding on request content as it is forbidden from
reading
more than CONTENT_LENGTH. With chunked transfer encoding on request content,
there is
no CONTENT_LENGTH.
This issue will be looked at again when/if WSGI 2.0 specification is released
and it
supports chunked transfer encoding on request content.
Original comment by Graham.Dumpleton@gmail.com
on 1 Apr 2007 at 1:41
Does anything, anywhere, ever actually send chunked HTTP requests? I've never
seen
it, and for normal applications expecting URL-encoded or multipart/form-data
request
bodies, I can't see any use for it anyhow. Wouldn't worry too much :-)
Original comment by bobi...@gmail.com
on 12 Jun 2007 at 7:52
Original comment by Graham.Dumpleton@gmail.com
on 22 Feb 2008 at 3:25
Hi all. This bit me today. Has there been any movement on adding support for
chunked requests? Without support for chunking, I'll most likely fall back to
using
PHP rather than python for this portion of my project...
Original comment by dree...@gmail.com
on 17 Jul 2008 at 9:37
Chunked requests are still outside of the WSGI specification. All the same, I
have been looking at it again in last
few days because of a separate discussion on mod_python list about how to
modify mod_python to also support
chunked request content. I am looking at that and trying to work out how I
could bring chunked request support
to mod_wsgi, still for core WSGI functionality be compliant with WSGI, but
allow people to optionally step outside
of WSGI if they want to to handle such requests.
So, not forgotten.
Original comment by Graham.Dumpleton@gmail.com
on 18 Jul 2008 at 1:47
Sick of waiting for WSGI folks. In revision 1115 have added ability to handled
chunked request content. To use
this you will need to side step the WSGI specification and do stuff it says you
shouldn't. That is, call read() with
no arguments to get access to all data, or keep calling read() with a block
size until it returns the empty string
which indicates no more data available. Reading until no more data is not
supposed to be done in WSGI because
specification says that you should never try to read more data than specified
by CONTENT_LENGTH. For chunked
request content we have no CONTENT_LENGTH.
Original comment by Graham.Dumpleton@gmail.com
on 16 Nov 2008 at 11:03
Attached 1115.diff including patch. Patch applies cleanly to mod_wsgi 2.X
source code if want to apply it to that.
Note that if using mod_wsgi 2.3 or older, would also need to apply patch for:
http://code.google.com/p/modwsgi/issues/detail?id=126
Better off perhaps to use mod_wsgi 2.X branch in subversion as includes the
latter.
Original comment by Graham.Dumpleton@gmail.com
on 7 Mar 2009 at 1:05
Attachments:
Chunked POSTs only seem to work in embedded mode for me (testing 3.0 RC1). Is
that a
bug or a limitation?
Original comment by palr...@gmail.com
on 1 Jun 2009 at 1:53
@palrich: There are certain things that can't be done in embedded mode, but
having absolutely no idea what
your code is trying to do, I cant say whether you are hitting the one
limitation I am thinking of.
Please post your actual problems along with small code example that
demonstrates what you are doing to the
mod_wsgi mailing list as easier to discuss there than on a ticket.
The mod_wsgi mailing list is on Google Groups at:
http://groups.google.com/group/modwsgi?hl=en
Original comment by Graham.Dumpleton@gmail.com
on 3 Jun 2009 at 7:34
Version 3.0 of mod_wsgi now released.
Original comment by Graham.Dumpleton@gmail.com
on 22 Nov 2009 at 2:47
Original issue reported on code.google.com by
Graham.Dumpleton@gmail.com
on 11 Mar 2007 at 7:23