YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Curl Timeout Options
jkarlen
#1 Posted : Sunday, July 24, 2005 4:37:05 PM
Rank: Starting Member

Groups: Registered

Joined: 7/24/2005
Posts: 1
Location: ,
I am getting the following repeatedly: curl_exec error 28 Operation timed out with 0 out of -1 bytes received My CURLOPT_TIMEOUT constant is showing a value of 13, which should be enough but if it's not how do I change it? I'm using the PHP SDK. If I was building the XML and posting it I could use a curl resource but within the API there is no access to the curl object. Any advice?
Sponsor  
 
Lewcifer
#2 Posted : Monday, July 25, 2005 4:16:51 PM
Rank: Starting Member

Groups: Registered

Joined: 6/22/2005
Posts: 25
Location: ,
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by jkarlen
[br]I am getting the following repeatedly:
curl_exec error 28 Operation timed out with 0 out of -1 bytes received

My CURLOPT_TIMEOUT constant is showing a value of 13, which should be enough but if it's not how do I change it? I'm using the PHP SDK. If I was building the XML and posting it I could use a curl resource but within the API there is no access to the curl object.

Any advice?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Yes, I have advice. I suggest you at least do a minimum amount of research to see if
readily available online sources can answer your question. In this case, you can google
for "CURLOPT_TIMEOUT PHP" and choose a relevant source, such as the one for the PHP site:

http://www.php.net/curl

Once there, you can do a "find" in your browser and search for "CURLOPT_TIMEOUT" on that
web page. There, you'll find examples which others have kindly posted showing how to change all
the CURL values you could want.



---
PK Media Ventures, Inc.
World Trade Center Panama
53rd Street East, Suite 701
Marbella, Bella Vista WTC-0832
Republica de Panama
strike1150
#3 Posted : Friday, August 05, 2005 8:22:14 PM
Rank: Starting Member

Groups: Registered

Joined: 8/5/2005
Posts: 6
Location: ,
The default timeout of SOAP is 4 secs!!! only if you use the paypal php sdk. I guess PayPal never tested their php sdk in live world.

www.postosc.com
Professional Resources for Open Source e-Commerce
gfppdev
#4 Posted : Sunday, August 21, 2005 8:08:02 PM
Rank: Starting Member

Groups: Registered

Joined: 3/20/2005
Posts: 9
Location: ,
Anyone have any ideas on this? Do you have to change the default CURL settings in the PHP ini file? Or do you have to set it in the script that sends the data to Paypal? Somewhere else?
cleaner416
#5 Posted : Monday, August 22, 2005 3:55:41 PM
Rank: Starting Member

Groups: Registered

Joined: 2/13/2004
Posts: 5
Location: ,
As strike says, PayPal set the cURL timeout to be 4 sec, which is just not enough.

Change it to something higher (I suggest 15) in this file:

/usr/local/lib/php/Services/PayPal/SOAP/Transport/HTTP.php

Look for the line:

var $timeout = 4;

(The path above assumes a typical *nix install of PHP and the SDK - adjust accordingly for yours)

ConferPal - http://www.ConferPal.com
* Unlimited conference calling and web conferencing
* Instant service activation via PayPal
* Low flat monthly rate
wilhelmy-it
#6 Posted : Tuesday, August 23, 2005 7:20:00 AM
Rank: Starting Member

Groups: Registered

Joined: 8/19/2005
Posts: 6
Location: ,
Do they test their stuff at all before running the big advertising campaigns? I sometimes wonder. See here http://www.paypaldev.org/topic.asp?TOPIC_ID=10652

BTW. No PayPal tech has yet bothered to even answer to that thread!

:-((

Stefan Wilhelmy
General Manager
Wilhelmy-IT Inc.
bakadesu
#7 Posted : Tuesday, August 30, 2005 4:27:35 AM
Rank: Starting Member

Groups: Registered

Joined: 8/24/2005
Posts: 2
Location: ,
I changed the var $timeout to 15, but I still get the curl timeout errors. I also notice they transaction still goes through. Any solutions?
strike1150
#8 Posted : Friday, September 02, 2005 3:39:01 PM
Rank: Starting Member

Groups: Registered

Joined: 8/5/2005
Posts: 6
Location: ,
it takes 25~35 secs to complete an (actually the first) API call (i'm using PHP SDK). The transaction goes through because the request has been sent to Paypal before you get timing out. Just my guess.

www.postosc.com
Professional Resources for Open Source e-Commerce
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.483 seconds.