Skip Menu |

This queue is for tickets about the ParallelUserAgent CPAN distribution.

Report information
The Basics
Id: 97658
Status: new
Priority: 0/
Queue: ParallelUserAgent

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

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



Subject: Possible bug when setting proxy in LWP::Parallel::UserAgent
Date: Thu, 31 Jul 2014 13:56:17 -0700
To: bug-ParallelUserAgent [...] rt.cpan.org
From: Peng Zhang(张逸鹏) <ghostsoarwind [...] gmail.com>
Hi there, This is Yipeng. Currently I am using LWP::Parallel::UserAgent to do some parallel requests work. The requests need to set a proxy to the user agent. However it seems like it has not used the proxy no matter how I set it. While I did similar stuff with LWP::UserAgent, it works fine. Code looks like this way my $pua = new LWP::Parallel::UserAgent; $pua->max_hosts(20); $pua->max_req(200); $pua->nonblock('true'); if ( defined($PROXY) ) { $pua->proxy( "http", $PROXY ); } And I have tried the PROXY syntax in many different ways, I think it is not the problem of the format since at least some errors should show up. But seems it does not work when sending out the request. I also use tcp dump to track the network activity: $ sudo tcpdump -A -s 1492 dst port (port_number) While I am running the script with the HTTP request, nothing shows up in the tcpdump monitor. However when I translate the HTTP request into a cURL command line way, it works fine and go through the proxy and tcpdump really shows the traffic. I do not want to show that part since it might be sensitive. Does anyone have similar experience before or report this bug already? Any advices here would be appreciated, thanks in advance. Yipeng.