Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration
It seems the problem has now moved to another place. Should I try the trunk? File /home/.../Webware-1.1/WebKit/Tasks/SessionTask.py, line 13, in run self._sessionstore.cleanStaleSessions(self) File /home/.../Webware-1.1/WebKit/SessionDynamicStore.py, line 256, in cleanStaleSessions self._memoryStore.cleanStaleSessions(task) File /home/.../Webware-1.1/WebKit/SessionStore.py, line 202, in cleanStaleSessions for key in self: RuntimeError: dictionary changed size during iteration On Wed, Nov 28, 2012 at 12:56 PM, Christoph Zwerschke c...@online.dewrote: Am 28.11.2012 12:10, schrieb Sophana K: Look like another thread could be changing the _memoryStore during this iteration. Should I change to for key in list(self._memoryStore): Yes, this or for key in self._memoryStore.keys() should fix it. I have already committed this as a fix to the trunk. -- Chris -- Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss -- Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration
Hi Sophana, hi Christoph, the webware for python is used in two companies, on 4 Servers, I work for. It is running very stable. But however we use a self-implemented session. Thats why it seems, I didn't mentioned this problem to Christoph. But our claims, we have to the session is a little bit bigger one that the one from webware has and it was easier to build an own, derived one. However, Webkit is pretty stable, there is no need not to take it, because Christoph very cares about all. Thank you Christoph btw. for all your help and support everytime so far! Best Regards, Tobias Am 30.11.2012 18:01, schrieb Sophana K: Thanks Isn't it strange nobody had this problem before? Seems that there isn't a lot of webware 1.1 applications in production. Don't you think? Sophana On Fri, Nov 30, 2012 at 5:36 PM, Christoph Zwerschke c...@online.de mailto:c...@online.de wrote: Am 30.11.2012 13:48, schrieb Sophana K: It seems the problem has now moved to another place. Should I try the trunk? File /home/.../Webware-1.1/WebKit/Tasks/SessionTask.py, line 13, in run self._sessionstore.cleanStaleSessions(self) File /home/.../Webware-1.1/WebKit/SessionDynamicStore.py, line 256, in cleanStaleSessions self._memoryStore.cleanStaleSessions(task) File /home/.../Webware-1.1/WebKit/SessionStore.py, line 202, in cleanStaleSessions for key in self: RuntimeError: dictionary changed size during iteration Same problem. It's now also fixed in the trunk. -- Christoph -- Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net mailto:Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss -- Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss -- Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration
Am 30.11.2012 18:01, schrieb Sophana K: Isn't it strange nobody had this problem before? Seems that there isn't a lot of webware 1.1 applications in production. Don't you think? T -- Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss
Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration
Am 30.11.2012 18:01, schrieb Sophana K: Isn't it strange nobody had this problem before? Seems that there isn't a lot of webware 1.1 applications in production. Don't you think? That problem should not appear in practice unless you have somehow two session sweeper tasks running at the same time. Are you doing anything special in this regard? I'm running Webware 1.1 apps with many users which use sessions heavily, and I've never seen this issue. -- Christoph (Sorry, my mailer just sent an empty reply.) -- Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net ___ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss