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

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

2009-02-16 Thread Luper Rouch
I am using twisted in a GUI application to do port forwarding over an SSH connection. All the network connections of the application (database, etc...) are routed through this connection, to simplify server configuration and secure things. My first attempt was to run the reactor in the main th