[Webware-discuss] webware gevent based appServer

2012-09-17 Thread Sophana K
Hi I'm using webware for my website since 2007. I'm using webware 1.0, because webware 1.1 didn't work correctly for me (I don't remember why) I'm currently trying to debug a freeze problem that occur every 1 to 3 weeks. The python appServer process is completely frozen, and must be killed with

Re: [Webware-discuss] webware gevent based appServer

2012-09-20 Thread Sophana K
I will give a try again with webware 1.1 It works, but not for a long time... python3 doesn't look like a priority for me. (I admit I had some hard time with unicode...) Backward compatibility for webkit is the most important IMHO. About naming convention, I don't care that much. I'm not using

[Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-11-28 Thread Sophana K
Hi I just upgraded to webware-1.1, and get some errors (about every day) in the session dynamic store intervalSweep method. Here is the traceback File /home/sophana/src/env1/Webware-1.1/WebKit/Tasks/SessionTask.py, line 13, in run self._sessionstore.cleanStaleSessions(self) File

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-11-30 Thread Sophana K
, 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

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-12-06 Thread Sophana K
I have some tasks scheduled every 30m and 24h. I did nothing special about the session sweeper. Are they related to taskKit? On Fri, Nov 30, 2012 at 6:28 PM, Christoph Zwerschke c...@online.de wrote: Am 30.11.2012 18:01, schrieb Sophana K: Isn't it strange nobody had this problem before

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-12-07 Thread Sophana K
. Shouldn't you remove the previous fixes then? Thanks for the hint. On Thu, Dec 6, 2012 at 12:23 PM, Christoph Zwerschke c...@online.de wrote: Am 06.12.2012 10:59, schrieb Sophana K: I have some tasks scheduled every 30m and 24h. I did nothing special about the session sweeper. Are they related

Re: [Webware-discuss] RuntimeError: dictionary changed size during iteration

2012-12-08 Thread Sophana K
:16, schrieb Sophana K: Yes, I'm creating a Scheduler instance. I didn't know I was supposed to use the one from the application. It's ok to create your own instance. But then the two schedulers will run as two parallel threads which needs more ressources and you can get these race conditions