Re: [Python-Dev] ssl module integration with asyncore

2007-11-29 Thread Bill Janssen
> No, the SSL code should NOT be allowed to block anything in any case, > even though the handshake is still not completed, in which case just > retry it at a later time. That's why there's "do_handshake_on_connect" in the first place. I'm just talking about what the SSL module should do if you d

Re: [Python-Dev] ssl module integration with asyncore

2007-11-29 Thread Giampaolo Rodola'
On 29 Nov, 06:00, Bill Janssen <[EMAIL PROTECTED]> wrote: > I think it's simpler to let the SSL module do it, even though it comes > at the expense of blocking the thread till the handshake is complete. > That's essentially what happens already. The question is whether the > SSL setup code is al

Re: [Python-Dev] ssl module integration with asyncore

2007-11-28 Thread Bill Janssen
> IMO, it's not reasonable since the application could use something > different than select.select(), like select.poll() or something else > again. As I said before, you can do away with select or poll altogether if you write a state machine for your asyncore dispatcher. Asyncore will tell you w

Re: [Python-Dev] ssl module integration with asyncore

2007-11-28 Thread Giampaolo Rodola'
On 29 Nov, 03:27, Bill Janssen <[EMAIL PROTECTED]> wrote: > > It does raise the same exception. > > Hmmm, not in my version. > > > Are there plans for fixing this? > > Yes, it's fixed in my CVS, and I'll upload a new version to PyPI when > I get a chance. > > > Using that kind of workaround is not

Re: [Python-Dev] ssl module integration with asyncore

2007-11-28 Thread Bill Janssen
> It does raise the same exception. Hmmm, not in my version. > Are there plans for fixing this? Yes, it's fixed in my CVS, and I'll upload a new version to PyPI when I get a chance. > Using that kind of workaround is not acceptable in any case (select > module shouldn't even get imported when u

Re: [Python-Dev] ssl module integration with asyncore

2007-11-28 Thread Giampaolo Rodola'
On 29 Nov, 00:26, Bill Janssen <[EMAIL PROTECTED]> wrote: > > I tried to write a simple asyncore-based server code, then I used a > > simple client to establish a connection with it. > > Once the client is connected server raises the following exception: > > I think this is a bug. Thanks! You're

Re: [Python-Dev] ssl module integration with asyncore

2007-11-28 Thread Bill Janssen
> I tried to write a simple asyncore-based server code, then I used a > simple client to establish a connection with it. > Once the client is connected server raises the following exception: I think this is a bug. Thanks! The issue is that the internal call to do_handshake() doesn't handle non-b

Re: [Python-Dev] ssl module integration with asyncore

2007-11-27 Thread Giampaolo Rodola'
I tried to write a simple asyncore-based server code, then I used a simple client to establish a connection with it. Once the client is connected server raises the following exception: --- snippet --- C:\Documents and Settings\billiejoex\Desktop\test>test.py []127.0.0.1:3003 Connected. Traceback

Re: [Python-Dev] ssl module integration with asyncore

2007-11-26 Thread Bill Janssen
> I downloaded this one: > http://pypi.python.org/pypi/ssl/1.12 Yes, that's the one. > ...which seems to contain the same test-suite used in the current Not quite. > Python 2.6 distribution available here: > http://svn.python.org/snapshots/ > I looked into test/test_ssl.py but I didn't find any

Re: [Python-Dev] ssl module integration with asyncore

2007-11-26 Thread Giampaolo Rodola'
On 26 Nov, 19:23, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Hi there, > > since ssl module is still in development I thought it would have been > > better asking such question here instead of on comp.lang.python. > > I'm interested in using the ssl module with asyncore but since there's > > no re

Re: [Python-Dev] ssl module integration with asyncore

2007-11-26 Thread Bill Janssen
> Hi there, > since ssl module is still in development I thought it would have been > better asking such question here instead of on comp.lang.python. > I'm interested in using the ssl module with asyncore but since there's > no real documentation about it yet I've been not able to write > somethin