Re: too many nested evaluations (infinite loop?)

Liste des GroupesRevenir à cl tcl 
Sujet : Re: too many nested evaluations (infinite loop?)
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tcl
Date : 22. Jun 2025, 21:01:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <1039net$nhiu$1@dont-email.me>
References : 1 2 3
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Jonathan Kelly <jonkelly@fastmail.fm> wrote:
On 23/6/25 03:48, saito wrote:
Hard to say without a more complete code snippet and lots of time. 
I suspect your "after" callbacks are interfering with each other,
perhaps over the log file access.  You already have two in the
sample code, and there may be more, in ClearExpired, saveSeen, etc. 
How large does the log file get?
 
But isn't the TCL event loop single threaded?

It is, but you can still get into these situations (usually caused by a
bug).

You mentioned you were also making http calls.  Is it possible that
your log entries are arriving faster than the http calls complete (http
is event driven behind the scenes, so calling into http to make a call
will restart the event loop again) causing requests to 'stack up'?



Date Sujet#  Auteur
22 Jun 25 * too many nested evaluations (infinite loop?)6Jonathan Kelly
22 Jun 25 `* Re: too many nested evaluations (infinite loop?)5saito
22 Jun 25  `* Re: too many nested evaluations (infinite loop?)4Jonathan Kelly
22 Jun 25   +- Re: too many nested evaluations (infinite loop?)1Rich
22 Jun 25   `* Re: too many nested evaluations (infinite loop?)2saito
22 Jun 25    `- Re: too many nested evaluations (infinite loop?)1saito

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal