Re: [Twisted-Python] how to change default reactor of twisted.internet?

2012-12-12 Thread Laurens Van Houtven
You should update your twisted install; it'll pick a better default then "select" on most platforms. For installing other reactors, see individual reactor's documentation, e.g: https://twistedmatrix.com/documents/current/api/twisted.internet.cfreactor.html (because individual reactors may requir

Re: [Twisted-Python] how to change default reactor of twisted.internet?

2012-12-12 Thread Stephen Thorne
What is your question? On Wed, Dec 12, 2012 at 2:52 PM, Anil KARADAG wrote: > Hi all, > > ** ** > > ** ** > > I have a question about reactor of “twisted.internet” module. I found > below; > > ** ** > > ** ** > > The default reactor is “select”; > > ** ** > > [root@karadag internet]

Re: [Twisted-Python] how to change default reactor of twisted.internet?

2012-12-12 Thread Itamar Turner-Trauring
On 12/12/2012 09:52 AM, Anil KARADAG wrote: > > Hi all, > > I have a question about reactor of “twisted.internet” module. I found > below; > > The default reactor is “select”; > > In newer versions of Twisted the default is not select, it may be poll or epoll depending on platform. You are proba

[Twisted-Python] how to change default reactor of twisted.internet?

2012-12-12 Thread Anil KARADAG
Hi all, I have a question about reactor of "twisted.internet" module. I found below; The default reactor is "select"; [root@karadag internet]# pwd /usr/lib/python2.6/site-packages/Twisted-10.0.0-py2.6-linux-x86_64.egg/t wisted/internet [root@karadag internet]# cat reactor.py #

Re: [Twisted-Python] How to get the Python socket object for an TLS connection?

2012-12-12 Thread Itamar Turner-Trauring
On Wed, Dec 12, 2012 at 8:22 AM, Michael Schlenker wrote: > Hi, > > i use twisted for some volume streaming over fat pipes (10 GE) and need > to tweak the rcv and send buffer sizes when streaming via > socket.setsockopt(). Otherwise Twisted spends lots of time calling the > producer with tiny blo

Re: [Twisted-Python] How to get the Python socket object for an TLS connection?

2012-12-12 Thread Michael Schlenker
Hi, answering my own post at least a bit... It seems the issue is that TLSMemoryBIOProtocol shadows the getHandle() method from the original TCPTransport, if i rename it to getHandle2() in TLSMemoryBIOProtocol all works fine (but obviously other stuff will break). Looks like Ticket #5182 is only

[Twisted-Python] How to get the Python socket object for an TLS connection?

2012-12-12 Thread Michael Schlenker
Hi, i use twisted for some volume streaming over fat pipes (10 GE) and need to tweak the rcv and send buffer sizes when streaming via socket.setsockopt(). Otherwise Twisted spends lots of time calling the producer with tiny blocksizes and writing those tiny buffers to the tiny OS buffer. Speedup f