Skip Menu |
 

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

Report information
The Basics
Id: 92194
Status: new
Priority: 0/
Queue: LWP-Authen-OAuth2

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From techman83 [...] gmail.com Thu Jan 16 04: 14:51 2014
MIME-Version: 1.0
X-Spam-Status: No, score=-2.448 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="001a11c1a2f006deca04f012db6a"
Message-ID: <CAGHRBmSE9k4LzUkXmSwMdavv5XKoBScByMtDjmPokwaUmcegUQ [...] mail.gmail.com>
X-Received: by 10.194.219.1 with SMTP id pk1mr7259093wjc.36.1389863681578; Thu, 16 Jan 2014 01:14:41 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.448
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 65D87240E66 for <cpan-bug+LWP-Authen-OAuth2 [...] hipster.bestpractical.com>; Thu, 16 Jan 2014 04:14:51 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P92Bc2it72IL for <cpan-bug+LWP-Authen-OAuth2 [...] hipster.bestpractical.com>; Thu, 16 Jan 2014 04:14:50 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 0C103240DBB for <bug-LWP-Authen-OAuth2 [...] rt.cpan.org>; Thu, 16 Jan 2014 04:14:49 -0500 (EST)
Received: (qmail 29873 invoked by alias); 16 Jan 2014 09:14:49 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com) (74.125.82.173) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 16 Jan 2014 01:14:47 -0800
Received: by mail-we0-f173.google.com with SMTP id t60so2909554wes.32 for <bug-LWP-Authen-OAuth2 [...] rt.cpan.org>; Thu, 16 Jan 2014 01:14:43 -0800 (PST)
Received: by 10.217.133.13 with HTTP; Thu, 16 Jan 2014 01:14:41 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+LWP-Authen-OAuth2 [...] hipster.bestpractical.com
Subject: Setting Dynamic File Upload causes Bearer.pm
Return-Path: <techman83 [...] gmail.com>
X-RT-Mail-Extension: lwp-authen-oauth2
X-Original-To: cpan-bug+LWP-Authen-OAuth2 [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=17BzBGFq2lx8lCDZVaNaXfivhl7ZBkBPnaVL6HPFpTc=; b=0KeWomfXIoGr/eblDFzFRd1bC4eKgQUzkQEIzidxa6QobnLjcZL9ZygKO0ONlH1i1N +BxKuDB/+Mu2uOWNZJaH9XyQBFZLVfMpyf42uZzA8aBK4HfHLEmeB88F5KFkjm7mQOYS YdXJ962TkJK6fv0Ddq9vRprgZOzlfT9V3o1BDwR6h7/udxkw4WuK3LwJVkDuzGA6FtFq Wy6rrdbqxuPFaYWOuMQ1txEeaCumn3NtxnM9gMTQ+RowfW4Ta3CsvcTsBiX5dzQ4soxO rGzjyU+Jd3wzXujRIWWy0KgaOXNrFwOUZUAV9yBS270VHxrT8vsPuj7bjaF0YWToDX+g GA9Q==
Date: Thu, 16 Jan 2014 17:14:41 +0800
X-Spam-Level:
To: bug-LWP-Authen-OAuth2 [...] rt.cpan.org
From: Leon Wright <techman83 [...] gmail.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: iso-8859-1
Content-Length: 826
Download (untitled) / with headers
text/plain 826b
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!!
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1182


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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