On Tue Jun 24 10:27:53 2014, DAGOLDEN wrote:
Show quoted text> Look for the discussion of $DYNAMIC_FILE_UPLOAD in
> HTTP::Request::Common. Supposedly setting that will only read the
> file in chunks as it uploads, which should avoid OOM problems.
>
> Otherwise, you'd need to manage that yourself somehow. E.g.
> HTTP::Tiny lets you give content as a code reference to return the
> message body in chunks and you could do your own buffered reads in
> there. But that's essentially what HTTP::Request is already doing
> with DYNAMIC_FILE_UPLOAD, I think, so YMMV.
Thanks for the tip.
Looks like DYNAMIC_FILE_UPLOAD will work, at least for the deploy_artifact API call. I just have to change the method signature to expect the filename rather than the file content (otherwise slurping would have to take place on the caller side and there's no way for me to take advantage of dynamic_file_upload).