Koozali.org: home of the SME Server

Can't get multi_curl to work properly.

Offline weblance

  • ****
  • 95
  • +0/-0
Can't get multi_curl to work properly.
« on: September 27, 2011, 07:28:29 PM »
Hi,

I have a script with multi_curl, that runs other curl subscripts in parallel. I have had the scripts hosted on a webhotel and it works perfectly there. But I wanted to try it on a SME 8, to see if I could host it myself. The problem is that it doesn't.

The whole systems gets a timeout if just one of the subscripts has a timeout. On my webhotel this is no problem - if one subscript has a timeout all the others are executed normally.

Does anyone have an idea how to fix this? Can the curl library be configured somehow?

/Carl

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Can't get multi_curl to work properly.
« Reply #1 on: September 27, 2011, 08:37:22 PM »
I am guessing this is a PHP script, from your rather short description, where did you get the source from?

If it is a php script I suggest enabling display_errormessages as described at http://wiki.contribs.org/PHP#Display_Error_Messages
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Can't get multi_curl to work properly.
« Reply #2 on: September 27, 2011, 08:40:40 PM »
I would add that IMHO this is OT here

Offline weblance

  • ****
  • 95
  • +0/-0
Re: Can't get multi_curl to work properly.
« Reply #3 on: September 27, 2011, 10:02:58 PM »
What does the OT acronym stand for?

Yes it is a PHP script. The script works, I've had it running for months on a different server (webhotel) but it doesn't work on SME :(
I'll try enabling PHP error messages.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Can't get multi_curl to work properly.
« Reply #4 on: September 27, 2011, 10:12:14 PM »
OT=Off Topic

this forum topic is
Quote
Discussion of the use of *ONLY* the components and features included on the SME Server 8.x CD. Please help the developers by reporting any problems to the Bug Tracker first, not here.

you should post this kind of question in "general discussions" forum

anyway, as cactus said you should enable php error display..

and, of course, you should tell us if there is any difference between your php/apache version between the working and the not working environment.. we have no crystal ball nor x-ray glasses ;-)