Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the LWP-Authen-OAuth2 CPAN distribution.

Report information
The Basics
Id:
92194
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
techman83 [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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!!


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.