|Subject:||Setting Dynamic File Upload causes Bearer.pm|
|Date:||Thu, 16 Jan 2014 17:14:41 +0800|
|To:||bug-LWP-Authen-OAuth2 [...] rt.cpan.org|
|From:||Leon Wright <techman83 [...] gmail.com>|
Hi, I hit memory issues uploading youtube videos and noted that LWP by default attempts to slurp the entire file into memory. Setting dynamic file uploads is the common advice: $HTTP::Request::Common::DYNAMIC_FILE_UPLOAD = 1; However it cause causes: Can't store CODE items at /home/leon/perl5/lib/perl5/LWP/Authen/OAuth2/AccessToken/Bearer.pm line 9. I worked around it for now by doing this: #my $actual_request = dclone($request); my $actual_request = $request; Which worked, but I'm not fully across why dclone is being used, so this probably isn't optimal. It's entirely possible I'm misunderstanding something and happy to be told as such. Thanks, Leon -- DRM 'manages access' in the same way that jail 'manages freedom.' # cat /dev/mem | strings | grep -i cats Damn, my RAM is full of cats... MEOW!!