[Python-Dev] peps: Specify start_serving(). Add Post-History. (original) (raw)
Guido van Rossum guido at python.org
Fri Dec 21 21:37:25 CET 2012
- Previous message: [Python-Dev] peps: Specify start_serving(). Add Post-History.
- Next message: [Python-Dev] peps: Specify start_serving(). Add Post-History.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I really meant synchronously... I usually start with working sync code and then figure out what to do to make it async. I'll give what you suggest a try.
--Guido van Rossum (sent from Android phone) On Dec 21, 2012 11:54 AM, "Antoine Pitrou" <solipsis at pitrou.net> wrote:
On Fri, 21 Dec 2012 20:34:18 +0100 (CET) guido.van.rossum <python-checkins at python.org> wrote: > > - In either case, once it has a socket, it will wrap it in a > - transport, and then enter a loop accepting connections (the best way > - to implement such a loop depends on the platform). Each time a > - connection is accepted, a transport and protocol are created for it. > + TBD: Support SSL? I don't even know how to do that synchronously, > + and I suppose it needs a certificate.
You need a SSLContext, and that SSLContext must have a cert / key pair defined using the
loadcertchain()
method. I supposed you meant "asynchronously", not "synchronously". The listening socket doesn't have to be a SSL socket, only the connected sockets need to be wrapped. The non-blocking handshake shouldn't be different (AFAICT) for a server SSL socket than for a client SSL socket. Regards Antoine.
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20121221/3cdcc3a5/attachment.html>
- Previous message: [Python-Dev] peps: Specify start_serving(). Add Post-History.
- Next message: [Python-Dev] peps: Specify start_serving(). Add Post-History.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]