List Info

Thread: time out problem




time out problem
user name
2008-01-02 01:43:11
Hi,

I am using Zend Gdata Calendar API. And I want to get all
calendar events, for 
that I am using the retrieveAllEntriesForFeed function . But
the script is 
getting timed out. In the description it is written that the
developer has to 
take proper precautions for that. I have given
set_time_limit(0) in my 
function. Even though the process is getting timed out. How
can I get all 
events ?

Also it is not displaying any error once it  timed out.
Anywhere, the code is 
suppressing the errors ? 

Please help me.

Regards
Binoy

Re: time out problem
user name
2008-01-03 00:29:06
On Jan 1, 2008, at 11:43 PM, Av Binoy wrote:

> Hi,
>
> I am using Zend Gdata Calendar API. And I want to get
all calendar  
> events, for
> that I am using the retrieveAllEntriesForFeed function
. But the  
> script is
> getting timed out. In the description it is written
that the  
> developer has to
> take proper precautions for that. I have given
set_time_limit(0) in my
> function. Even though the process is getting timed out.
How can I  
> get all
> events ?
>
> Also it is not displaying any error once it  timed out.
Anywhere,  
> the code is
> suppressing the errors ?
>
> Please help me.
>
> Regards
> Binoy


To my knowledge, the library isn't doing anything that would
mask a  
timeout error.

Debugging timeouts can be tricky as there are several places
where  
problems could arise. Calling set_time_limit() might not be
enough --  
FastCGI (if you're not using mod_php), the HTTP server, and
any proxy  
servers involved could also be timing out. Also,
set_time_limit()  
won't work if your PHP instance is running in safe mode.
Check your  
server's error logs to see if anything looks suspicious.

If you're retrieving enough events that PHP is timing out,
it might be  
a good idea anyway to issue a more targeted query, implement
paging,  
or grab smaller batches of events while displaying a
"Please Wait"  
message to your users.

-- 
Trevor Johns
http://tjohns.net


Re: time out problem
user name
2008-01-03 01:37:08
Thanks Trevor.

Now I am taking the events as small batches. 

> On Jan 1, 2008, at 11:43 PM, Av Binoy wrote:
> > Hi,
> >
> > I am using Zend Gdata Calendar API. And I want to
get all calendar
> > events, for
> > that I am using the retrieveAllEntriesForFeed
function . But the
> > script is
> > getting timed out. In the description it is
written that the
> > developer has to
> > take proper precautions for that. I have given
set_time_limit(0) in my
> > function. Even though the process is getting timed
out. How can I
> > get all
> > events ?
> >
> > Also it is not displaying any error once it  timed
out. Anywhere,
> > the code is
> > suppressing the errors ?
> >
> > Please help me.
> >
> > Regards
> > Binoy
>
> To my knowledge, the library isn't doing anything that
would mask a
> timeout error.
>
> Debugging timeouts can be tricky as there are several
places where
> problems could arise. Calling set_time_limit() might
not be enough --
> FastCGI (if you're not using mod_php), the HTTP server,
and any proxy
> servers involved could also be timing out. Also,
set_time_limit()
> won't work if your PHP instance is running in safe
mode. Check your
> server's error logs to see if anything looks
suspicious.
>
> If you're retrieving enough events that PHP is timing
out, it might be
> a good idea anyway to issue a more targeted query,
implement paging,
> or grab smaller batches of events while displaying a
"Please Wait"
> message to your users.


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )