Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Mod-perl handling of Chunked POST's

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


rafiq at joshua

Jul 16, 2012, 5:13 AM

Post #1 of 2 (353 views)
Permalink
Mod-perl handling of Chunked POST's

I am using Plack::Handler::Apache2 to dispatch to a custom psgi which
handles POST requests of large files. I currently have the client side of
this chain posting with pl_upload API (not that it matters) which allows
the post to be sent chunked.

Empirically this appears to only invoke my psgi with a single 'chunk size'
upload, which suggests to me that delegation to the handler is not
deffered until all chunks have been consumed.

I'm just wondering whether anyone can point me in the appropriate
direction wrt figuring out how chunked posts should be handled in this
scenario. Particularly whether it is up to the handler to re-assemble the
payload or not; I'm pretty sure this isn't the case?

I'd be grateful if someone would point me in the right direction?

Cheers,

Raf


joe_schaefer at yahoo

Jul 16, 2012, 5:18 AM

Post #2 of 2 (324 views)
Permalink
Re: Mod-perl handling of Chunked POST's [In reply to]

apreq has clean handling of chunked POST data.  You might start
there.



----- Original Message -----
> From: Raf <rafiq [at] joshua>
> To: modperl [at] perl
> Cc:
> Sent: Monday, July 16, 2012 8:13 AM
> Subject: Mod-perl handling of Chunked POST's
>
>
> I am using Plack::Handler::Apache2 to dispatch to a custom psgi which handles
> POST requests of large files.  I currently have the client side of this chain
> posting with pl_upload API (not that it matters) which allows the post to be
> sent chunked.
>
> Empirically this appears to only invoke my psgi with a single 'chunk
> size' upload, which suggests to me that delegation to the handler is not
> deffered until all chunks have been consumed.
>
> I'm just wondering whether anyone can point me in the appropriate direction
> wrt figuring out how chunked posts should be handled in this scenario. 
> Particularly whether it is up to the handler to re-assemble the payload or not;
> I'm pretty sure this isn't the case?
>
> I'd be grateful if someone would point me in the right direction?
>
> Cheers,
>
> Raf
>

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.