[Twisted-Python] Re: Twisted FTP

2008-12-15 Thread Adriano Marques
Hello Gergely, > I just started to learn twisted. I tried to look after a working FTP example > on the net for twisted, but unfortunately I could not really found any. This > one seemed to be the most completed, but it says "Unknown error code" when I > try to connect to it. I'm sorry, but I don'

Re: [Twisted-Python] Twisted and MVC

2008-12-15 Thread Christian Scharkus
Well ... you're just right but the code is still closed atm so you have to be happy with some snippets. I left out unimportant functions and replaced names with representatives. The main.py: import controller controller.controller().startConnection('127.0.0.1',23002) The controller.py: import

[Twisted-Python] twisted eat the memory

2008-12-15 Thread Muaaz Hussain
I wrote web application on twisted and my application read from ulogd daemon and push the output to the client browser using AJAX .also I have another application displaying ethernets traffic using AJAX. but after some minutes the twisted process in the server eat the memory and the OOM-killer of

Re: [Twisted-Python] twisted eat the memory

2008-12-15 Thread Cary Hull
What version of Python are you using? 2.4 and below have problems releasing memory back to the OS. Since Twisted apps are normally long running Python daemons they can be more prone to memory leaks. You need to be aware of how objects are garbage collected in Python and rework your code if necessar

Re: [Twisted-Python] twisted eat the memory

2008-12-15 Thread Jean-Paul Calderone
On Mon, 15 Dec 2008 20:31:39 +0300, Muaaz Hussain wrote: I wrote web application on twisted and my application read from ulogd daemon and push the output to the client browser using AJAX .also I have another application displaying ethernets traffic using AJAX. but after some minutes the twiste

Re: [Twisted-Python] twisted eat the memory

2008-12-15 Thread Andreas Kostyrka
Am Mon, 15 Dec 2008 20:31:39 +0300 schrieb "Muaaz Hussain" : > I wrote web application on twisted and my application read from ulogd > daemon and push the output to the client browser using AJAX .also I > have another application displaying ethernets traffic using AJAX. > but after some minutes t