[Twisted-Python] Gtk2Reactor: what are the reasons for avoiding GLib functions?

2011-04-05 Thread Jason Heeris
I'd like to try and get to the bottom of the various problems with Twisted + GTK + Windows (mainly issue #4932[1], but see also issues #4376[2], #4862[3], #1759[4]). On issue #4376 there's a comment from Exarkun: "glib handles timeouts much less efficiently than any of the existing Twisted reacto

Re: [Twisted-Python] Gtk2Reactor: what are the reasons for avoiding GLib functions?

2011-04-05 Thread Andrew Bennetts
Jason Heeris wrote: […] > "glib handles timeouts much less efficiently than any of the existing > Twisted reactors. Letting glib take care of these would probably make > the glib-based reactors unusable for applications with many timeouts." > > Is there a benchmark or piece of code somewhere that

Re: [Twisted-Python] Gtk2Reactor: what are the reasons for avoiding GLib functions?

2011-04-05 Thread Itamar Turner-Trauring
On Tue, 2011-04-05 at 15:08 +0800, Jason Heeris wrote: > I'd like to try and get to the bottom of the various problems with > Twisted + GTK + Windows (mainly issue #4932[1], but see also issues > #4376[2], #4862[3], #1759[4]). Thanks for looking into this! > On issue #4376 there's a comment from

Re: [Twisted-Python] Gtk2Reactor: what are the reasons for avoiding GLib functions?

2011-04-05 Thread Žiga Seilnacht
Hello, On 5.4.2011 9:08, Jason Heeris wrote: > I'd like to try and get to the bottom of the various problems with > Twisted + GTK + Windows (mainly issue #4932[1], but see also issues > #4376[2], #4862[3], #1759[4]). > > On issue #4376 there's a comment from Exarkun: > > "glib handles timeouts muc

Re: [Twisted-Python] Gtk2Reactor: what are the reasons for avoiding GLib functions?

2011-04-05 Thread Jason Heeris
On 5 April 2011 20:06, Žiga Seilnacht wrote: > I think that the main reason for PortableGtkReactor being used on Windows > is due to glib's IO channels limitations on Windows. You can only have 63 > channels in the event loop at the same time due to g_poll's use of > MsgWaitForMultipleObject. The

[Twisted-Python] Twisted 11.0 and Foolscap incompatibility

2011-04-05 Thread Bill Noon
It looks like the new ssl/tls code doesn't work with Foolscap. The ConnectionMixin is treating the self.protocol object as a transport and calls write() and loseConnection() on it. Here is a traceback: Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages

Re: [Twisted-Python] Twisted SVN HEAD and Foolscap incompatibility

2011-04-05 Thread Glyph Lefkowitz
On Apr 5, 2011, at 3:03 PM, Bill Noon wrote: > File > "/usr/lib64/python2.6/site-packages/Twisted-11.0.0_r31548-py2.6-linux-x86_64.egg/twisted/internet/_newtls.py", > line 176, in write Nobody panic :). r31548 of trunk is not Twisted 11.0.0. Twisted 11.0 diverged from trunk as of

Re: [Twisted-Python] Twisted 11.0 and Foolscap incompatibility

2011-04-05 Thread Glyph Lefkowitz
On Apr 5, 2011, at 3:03 PM, Bill Noon wrote: > Reverting to Twisted 10.2 works for now. You should just revert to the actual released version of 11.0. How did you install 11.0? Is easy_install screen-scraping the wrong link again, or something like that? By the way; correct version number o

Re: [Twisted-Python] Twisted SVN HEAD and Foolscap incompatibility

2011-04-05 Thread Bill Noon
On Apr 5, 2011, at 3:23 PM, Glyph Lefkowitz wrote: > > On Apr 5, 2011, at 3:03 PM, Bill Noon wrote: > >>File >> "/usr/lib64/python2.6/site-packages/Twisted-11.0.0_r31548-py2.6-linux-x86_64.egg/twisted/internet/_newtls.py", >> line 176, in write > > Nobody panic :). Sorry about missta

Re: [Twisted-Python] Twisted 11.0 and Foolscap incompatibility

2011-04-05 Thread Bill Noon
On Apr 5, 2011, at 4:02 PM, Glyph Lefkowitz wrote: > > On Apr 5, 2011, at 3:03 PM, Bill Noon wrote: > >> Reverting to Twisted 10.2 works for now. > > You should just revert to the actual released version of 11.0. How did you > install 11.0? Is easy_install screen-scraping the wrong link aga

Re: [Twisted-Python] [Twisted-web] Creating a hybrid server in Twisted

2011-04-05 Thread Glyph Lefkowitz
On Apr 4, 2011, at 7:51 PM, David Bolen wrote: > Jashank Jeremy writes: > >> So I'm pretty much stuck in a rut. I don't want to totally reinvent the >> wheel just to be able to protocol-switch; I'd prefer to make use of >> existing code from Twisted. How do I hijack Twisted.Web to add protoco

Re: [Twisted-Python] Twisted SVN HEAD and Foolscap incompatibility

2011-04-05 Thread Glyph Lefkowitz
On Apr 5, 2011, at 4:04 PM, Bill Noon wrote: > Ok. It is ticket 5028, http://twistedmatrix.com/trac/ticket/5028 As exarkun already noted here: , this is caused by foolscap manipulating an attribute which probably shouldn't have been public