[Twisted-Python] Twisted 12.0.0 - Facing Issue in SSL/TLS connection setup

2012-07-17 Thread Guru Prasad
Hello All, I am new to Twsited and I am facing SSL/TLS connection setup issue with Twisted 12.0.0. Version of Ubuntu (unstable), I am using is: 12.10 During the SSL/TLS connection setup, there is ClientHello request from the client and for this request there is no response from the server where Tw

Re: [Twisted-Python] Twisted 12.0.0 - Facing Issue in SSL/TLS connection setup

2012-07-17 Thread Itamar Turner-Trauring
On 07/17/2012 06:42 AM, Guru Prasad wrote: > : File > "/usr/local/lib/python2.7/dist-packages/gnutls/interfaces/twisted/__init__.py", > > line 322, in loseConnection > : tcp.Server.loseConnection(self, reason) > : TypeError: loseConnection() takes exactly 1 argument (2 given) > > Anyone el

Re: [Twisted-Python] deferred graph?

2012-07-17 Thread Dan Stromberg
On Mon, Jul 16, 2012 at 11:45 PM, Dan Stromberg wrote: > > On Mon, Jul 16, 2012 at 11:20 PM, Andrew Bennetts > wrote: > >> Dan Stromberg wrote: >> […] >> > I'm playing with twisted.internet.defer.setDebugging now. >> > >> > Is there a corresponding function that can be used to produce its >> rep

Re: [Twisted-Python] bug or my code? (getPage + Twisted Webserver = Exception)

2012-07-17 Thread Me Myself
The server I am using uses TLS SNI. Does getPage support this, or has any plans in the near future to support this? Do any other python packages (request/urllib3/...) support TLS SNI yet? Also, is there a way to do HTTP CONNECT using twisted before I do the SSL handshake. I think that should solve

Re: [Twisted-Python] A few simple questions

2012-07-17 Thread Russell E. Owen
In article , Laurens Van Houtven <_...@lvh.cc> wrote: > On Thursday, July 12, 2012, Russell E. Owen wrote: > > > I'm adding Twisted support to some existing communication code and I > > have a few questions which I hope are simple. I've been reading the API > > documentation, but if the answers

Re: [Twisted-Python] A few simple questions

2012-07-17 Thread Glyph
On Jul 17, 2012, at 9:25 AM, Russell E. Owen wrote: >> Can you elaborate on the case? > > I've found that Twisted sometimes swallows errors unless I am extremely > careful. I would like to be able to check a protocol to make sure it is > operational (connected and happy) as a means of assurin

Re: [Twisted-Python] bug or my code? (getPage + Twisted Webserver = Exception)

2012-07-17 Thread exarkun
On 04:25 pm, mobilebacku...@gmail.com wrote: >The server I am using uses TLS SNI. Does getPage support this, or has >any plans in the near future to support this? Do any other python >packages (request/urllib3/...) support TLS SNI yet? Sure. Just pass in an appropriately configured SSL context fa

Re: [Twisted-Python] deferred graph?

2012-07-17 Thread exarkun
On 03:40 pm, drsali...@gmail.com wrote: >> >>Strangely, this doesn't give the report until after the sleep >>finishes... ? What's strange about that? "time.sleep(10)" doesn't mean "immediately print out debug information". It means "do not do anything at all in this program for around 10 sec

Re: [Twisted-Python] bug or my code? (getPage + Twisted Webserver = Exception)

2012-07-17 Thread Me Myself
Can you please show me an example whenever you get a chance? Thanks, --Ram. On Tue, Jul 17, 2012 at 3:50 PM, wrote: > On 04:25 pm, mobilebacku...@gmail.com wrote: >>The server I am using uses TLS SNI. Does getPage support this, or has >>any plans in the near future to support this? Do any othe

Re: [Twisted-Python] A few simple questions

2012-07-17 Thread exarkun
On 04:25 pm, ro...@uw.edu wrote: >In article >, >Laurens Van Houtven <_...@lvh.cc> wrote: >>On Thursday, July 12, 2012, Russell E. Owen wrote: >> >> > I'm adding Twisted support to some existing communication code and I >> > have a few questions which I hope are simple. I've been reading the >>API

Re: [Twisted-Python] bug or my code? (getPage + Twisted Webserver = Exception)

2012-07-17 Thread Justin Venus
Ram, Have you checked out the ssl[1] howto? The section on "Client with certificates" gives an example on how to make your own SSL Context Class. 1) http://twistedmatrix.com/documents/current/core/howto/ssl.html Regards, Justin Venus On Tue, Jul 17, 2012 at 3:01 PM, Me Myself wrote: > Can yo

Re: [Twisted-Python] bug or my code? (getPage + Twisted Webserver = Exception)

2012-07-17 Thread Glyph
On Jul 17, 2012, at 12:50 PM, exar...@twistedmatrix.com wrote: > On 04:25 pm, mobilebacku...@gmail.com wrote: >> The server I am using uses TLS SNI. Does getPage support this, or has >> any plans in the near future to support this? Do any other python >> packages (request/urllib3/...) support TLS

Re: [Twisted-Python] deferred graph?

2012-07-17 Thread Dan Stromberg
On Tue, Jul 17, 2012 at 12:53 PM, wrote: > On 03:40 pm, drsali...@gmail.com wrote: > >> > >>Strangely, this doesn't give the report until after the sleep > >>finishes... ? > > What's strange about that? "time.sleep(10)" doesn't mean "immediately > print out debug information". > Well, if you r