Re: data from bus to publishing function

IngoognI <[email protected]> Sun, 22 Jan 2017 01:52:43 -0800 (PST)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
@ it again. Under stress things started to go wrong, as Jason predicted. 
Connection where made at the wrong moment and would find no data. Double 
data started appearing on existing connections. So I moved the whole Var 
class inside the pubcpu method and connecting seems works fine now, looks 
strange though.

Then I added the StatusMonitor tool 
http://tools.cherrypy.org/wiki/StatusTool and got it working (although I do 
not understand how it does what it does). It very nicely shows that the 
sensor method first gets all the threads until there are requests to 
pubcpu. After closing several connections to pubcpu they are removed from 
the thread list, takes about 10 seconds. So that seems to work fine too.

Again as Jason predicted, the subscribe calls to the 'cpu' channel are not 
cleaned up. Now if the StatusMonitor can see that a thread is not used any 
more, whatever triggers that can that be used to unsubscribe from the 
channel if they are related somehow?

Ingo

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.