cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: PHP & Curl - Timeout

From: Thomas Bähr [Office] <baehr_at_glaswald.de>
Date: Thu, 12 Jun 2003 18:12:39 +0200

At 17:52 12.06.2003 +0200, you wrote:
>On Thu, 12 Jun 2003, "Thomas Bähr [Office]" wrote:
>
> > it works find for small files (the file includes an xml file + grafic
> > datas) and worked with around 2 MB
> >
> > but if i try this with a bigger file [around 28 MB with 480 rows of data]
> > the execution seems to timeout
>
>It is your browser that times out, isn't it?

My Browser !?!?
Im SENDING Data via that CURL HTTP Post and the Server side to which iI
send the Data
is STILL Proccessing the XML File while on my local system the execution of
my php script continues
right after the CURL_Upload snipset so i guess the CURL operation timedout
before getting the answer
from the servlet [which in case still runs].
Im starting it in a shell like 'php do_upload.php' [linux shell] which sets
the VARS and than calls my
CURL HTTP POST Upload include so no Browser involved in that.

> > i looked at the servlet and saw that it still processes my file so i guess
> > its a Timeout problem with the curl_exec() function !?!? i even tried
> > curl_setopt($ch, CURLOPT_TIMEOUT, 32000); with only the same result.
>
>So why would a timeout on the curl operation change anything?

coz i think the curl operation does not wait enough to get the anser from
the servlet which parses the XML Data
file and AFTER finishing with all record returning an XML answer - so i
could see which records has been imported and which not.

> > php max_execution_time is set to 3000 which is around 50 min but the upload
> > ends after around 430 seconds
>
>I doubt that your PHP settings change the timeout value for your browser.

im still not getting that browser thing *G* im not calling the php routine
from within the browser but from the
shell like mentioned above !? maybe I didnt point that out *sigh* sry 4
that :-))

> > is there something else i should watch out !? Any other solutions which
> > might help in that case !?
>
>AFAICT your only hope is to return data faster to the browser.
>
>--
> Daniel Stenberg -- curl: been grokking URLs since 1998

thx for answering!

Thomas

-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-12