logo       

Re: More noob questions: nusoap client in daemon script: msg#00035

php.nusoap.general

Subject: Re: More noob questions: nusoap client in daemon script

Yes, you must call clearDebug or re-create your object instances periodically
or eventually you will run out of memory. It does not make sense to "flush the
debug to the screen": sometimes, there is no screen per se, and other times
there is something like a stream of XML or HTML being written that the debug
would render invalid.

My to-do list includes a task for adding a way to set a debug level, which
would include a level that turns of debug altogether.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Gaetano Giunta" <giunta.gaetano@xxxxxxxxxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, April 11, 2005 6:49 AM
Subject: [Nusoap-general] More noob questions: nusoap client in daemon script


> The nusoap objects appear to always send debug info to a memory buffer
> (member variable), without ever clenaing it up.
>
> If the client making calls is never destroyed, memory usage will eventually
> leak to the point where php crashes.
>
> It is easy enough to add a call here and there to ResetDebug, but I think it
> would be a better default to have the client reset its internal debug bufers
> on its own.
>
> I also find it strange to have debug info added to object instead of flushed
> to screen: if a php error halts the script halfway through, the debug info
> will be available no more to find out where the problem was.
>
> Anyway, the real question was: are there other memleaks apart from the one
> described above that would prevent to use a soap client in a daemon script?
>
> Bye
> Gaetano
> HWj)²ÊzÊyÖNLúvçèyvzËjwv·?ì¢x?ÚvÊ!3¡Û¶Ç¢jj[z»Sǽê?'¦º¹Ë¶»ÊXzê¢Ø?*JÖ¶·v)zO¶Úý§¢Çr?iخ婡È^÷ªÉrC²??é­©j)z
> ²Ó²??é­©S˲þX¶Ëº·~SzwþX¶ÏSË?úzëj~?ê


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise