Re: [Twisted-Python] Correct pattern to do SSH forwarding in a GUI

2009-02-19 Thread flupke
On 04:19 am, luper.ro...@gmail.com wrote: My first attempt was to run the reactor in the main thread, but the application was "freezing" when e.g. doing a SELECT with SQLAlchemy/ psycopg2 (I guess because psycopg2 just waits for data and blocks the twisted reactor). So I put reactor.run() in

Re: [Twisted-Python] Correct pattern to do SSH forwarding in a GUI

2009-02-17 Thread Luper Rouch
gl...@divmod.com wrote: On 04:19 am, luper.ro...@gmail.com wrote: My first attempt was to run the reactor in the main thread, but the application was "freezing" when e.g. doing a SELECT with SQLAlchemy/psycopg2 (I guess because psycopg2 just waits for data and blocks the twisted reactor). So I

Re: [Twisted-Python] Correct pattern to do SSH forwarding in a GUI

2009-02-17 Thread glyph
On 04:19 am, luper.ro...@gmail.com wrote: My first attempt was to run the reactor in the main thread, but the application was "freezing" when e.g. doing a SELECT with SQLAlchemy/psycopg2 (I guess because psycopg2 just waits for data and blocks the twisted reactor). So I put reactor.run() in a t