Issue 10084: SSL support for asyncore (original) (raw)

Created on 2010-10-13 13:09 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (6)

msg118519 - (view)

Author: Antoine Pitrou (pitrou) * (Python committer)

Date: 2010-10-13 13:09

It might be useful to make public the SSL support for asyncore which is currently implemented in various tests.

msg118520 - (view)

Author: Antoine Pitrou (pitrou) * (Python committer)

Date: 2010-10-13 13:11

(I'm posting this issue after having read this message: http://mail.python.org/pipermail/python-list/2010-October/1257689.html where the poster is clearly confused about SSL support for asyncore)

msg118552 - (view)

Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer)

Date: 2010-10-13 17:40

Problem with SSL dispatcher subclasses used in tests is that they are all similar to pyftpdlib's SSLConnection class ( http://code.google.com/p/pyftpdlib/source/browse/trunk/pyftpdlib/contrib/handlers.py?spec=svn743&r=729#73 ) and I'm not sure it's API is suitable for a general use case. It fits well for pyftpdlib, servers in general and stdlib tests but I'm not sure about other uses cases. In details I'm thinking about clients, secure connections reverted back to clear-text (e.g FTP might need this) and recent issues about certificates validation. Before writing anything we should agree on an API and make sure it is able to cover all use cases.

msg128459 - (view)

Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer)

Date: 2011-02-12 19:36

Initial draft of a patch including tests and a new ssl_dispatcher subclass. asynchat needs to be changed as well, probably by using a mixin class.

msg128473 - (view)

Author: Antoine Pitrou (pitrou) * (Python committer)

Date: 2011-02-12 23:54

First comments:

SSL_ERROR_SSL doesn't exist. Perhaps you mean ssl.SSL_ERROR_EOF?

lacks a self.handle_close()?

(also, I'm not sure why these tests can't be shared with non-SSL test classes)

msg220561 - (view)

Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer)

Date: 2014-06-14 15:07

asyncore module has been deprecated as per https://docs.python.org/3/library/asyncore.html:

<>

Closing this out as won't fix.

History

Date

User

Action

Args

2022-04-11 14:57:07

admin

set

github: 54293

2014-06-14 15:07:54

giampaolo.rodola

set

status: open -> closed
resolution: wont fix
messages: +

2011-02-12 23:54:02

pitrou

set

nosy:pitrou, giampaolo.rodola, djc
messages: +

2011-02-12 19:36:17

giampaolo.rodola

set

files: + asyncore_ssl_v1.patch

messages: +
keywords: + patch
nosy:pitrou, giampaolo.rodola, djc

2010-12-01 09:55:55

djc

set

nosy: + djc

2010-10-13 17:40:37

giampaolo.rodola

set

messages: +

2010-10-13 13:11:42

pitrou

set

messages: +

2010-10-13 13:09:08

pitrou

create