Skip Menu |

This queue is for tickets about the Plient CPAN distribution.

Report information
The Basics
Id: 75888
Status: open
Priority: 0/
Queue: Plient

People
Owner: Nobody in particular
Requestors: cameron [...] entitycoding.com
Cc:
AdminCc:

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



Subject: CURL errors with many fast requests
Using the plient module, and I really like it because I use windows and linux machines in the same environment and prefer to use Curl where available. But I am running into an issue when I am making curl requests at a very fast rate. After approximately 610 requests in a foreach loop, I receive an error: sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file And it looks like there is some form of an error reading the pipe from the pipe open for the curl request. However, when using LWP, this works perfectly. I can only expect it's because of the number of requests and the pipe open. What about using the WWW::Curl module instead of using the actual system command? System: Fedora 16 x86_64 Perl 5.14 Plient 0.03 Thanks!
From: cameron [...] entitycoding.com
Additionally, if I set: Plient->handler_preference( "http", [ "HTTPTiny", "HTTPLite", "LWP" ] ); I receive no errors. Which is why I was led to believe that it is because of the pipe open in the curl and wget modules. On Mon Mar 19 16:07:19 2012, cameronjacobs wrote: Show quoted text
> Using the plient module, and I really like it because I use windows
and Show quoted text
> linux machines in the same environment and prefer to use Curl where > available. But I am running into an issue when I am making curl > requests at a very fast rate. After approximately 610 requests in a > foreach loop, I receive an error: > sh: -c: line 0: unexpected EOF while looking for matching `'' > sh: -c: line 1: syntax error: unexpected end of file > > And it looks like there is some form of an error reading the pipe from > the pipe open for the curl request. > > However, when using LWP, this works perfectly. I can only expect it's > because of the number of requests and the pipe open. What about using > the WWW::Curl module instead of using the actual system command? > > System: > Fedora 16 x86_64 > Perl 5.14 > Plient 0.03 > > Thanks!
Subject: Re: [rt.cpan.org #75888] CURL errors with many fast requests
Date: Tue, 20 Mar 2012 09:15:07 +0800
To: Cameron Jacobs via RT <bug-Plient [...] rt.cpan.org>
From: sunnavy <sunnavy [...] gmail.com>
Does this issue only happen when at a very fast rate or with some specific urls? sunnavy On 12-03-19 16:07, Cameron Jacobs via RT wrote: Show quoted text
> Mon Mar 19 16:07:19 2012: Request 75888 was acted upon. > Transaction: Ticket created by cameronjacobs > Queue: Plient > Subject: CURL errors with many fast requests > Broken in: 0.03 > Severity: Important > Owner: Nobody > Requestors: cameron@entitycoding.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=75888 > > > > Using the plient module, and I really like it because I use windows and > linux machines in the same environment and prefer to use Curl where > available. But I am running into an issue when I am making curl > requests at a very fast rate. After approximately 610 requests in a > foreach loop, I receive an error: > sh: -c: line 0: unexpected EOF while looking for matching `'' > sh: -c: line 1: syntax error: unexpected end of file > > And it looks like there is some form of an error reading the pipe from > the pipe open for the curl request. > > However, when using LWP, this works perfectly. I can only expect it's > because of the number of requests and the pipe open. What about using > the WWW::Curl module instead of using the actual system command? > > System: > Fedora 16 x86_64 > Perl 5.14 > Plient 0.03 > > Thanks! >
From: cameron [...] entitycoding.com
Actually, it's running the exact same url, the only difference is they are all post requests, and the data is different for each post. I just checked the data and the only difference seems to be that the record that it's failing on, one of the field's values contains a single quote ('). So perhaps it's it could be a problem with them not being escaped. On Mon Mar 19 21:15:24 2012, SUNNAVY wrote: Show quoted text
> Does this issue only happen when at a very fast rate or with some
specific Show quoted text
> urls? > > sunnavy > > On 12-03-19 16:07, Cameron Jacobs via RT wrote:
> > Mon Mar 19 16:07:19 2012: Request 75888 was acted upon. > > Transaction: Ticket created by cameronjacobs > > Queue: Plient > > Subject: CURL errors with many fast requests > > Broken in: 0.03 > > Severity: Important > > Owner: Nobody > > Requestors: cameron@entitycoding.com > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=75888 > > > > > > > Using the plient module, and I really like it because I use windows
and Show quoted text
> > linux machines in the same environment and prefer to use Curl where > > available. But I am running into an issue when I am making curl > > requests at a very fast rate. After approximately 610 requests in a > > foreach loop, I receive an error: > > sh: -c: line 0: unexpected EOF while looking for matching `'' > > sh: -c: line 1: syntax error: unexpected end of file > > > > And it looks like there is some form of an error reading the pipe
from Show quoted text
> > the pipe open for the curl request. > > > > However, when using LWP, this works perfectly. I can only expect
it's Show quoted text
> > because of the number of requests and the pipe open. What about
using Show quoted text
> > the WWW::Curl module instead of using the actual system command? > > > > System: > > Fedora 16 x86_64 > > Perl 5.14 > > Plient 0.03 > > > > Thanks! > >