<p dir="ltr">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.</p>
<p dir="ltr">--Guido van Rossum (sent from Android phone)</p>
<div class="gmail_quote">On Dec 21, 2012 11:54 AM, "Antoine Pitrou" <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, 21 Dec 2012 20:34:18 +0100 (CET)<br>
guido.van.rossum <<a href="mailto:python-checkins@python.org">python-checkins@python.org</a>> wrote:<br>
><br>
> - In either case, once it has a socket, it will wrap it in a<br>
> - transport, and then enter a loop accepting connections (the best way<br>
> - to implement such a loop depends on the platform). Each time a<br>
> - connection is accepted, a transport and protocol are created for it.<br>
> + TBD: Support SSL? I don't even know how to do that synchronously,<br>
> + and I suppose it needs a certificate.<br>
<br>
You need a SSLContext, and that SSLContext must have a cert / key pair<br>
defined using the `load_cert_chain()` method.<br>
<br>
I supposed you meant "asynchronously", not "synchronously". The<br>
listening socket doesn't have to be a SSL socket, only the connected<br>
sockets need to be wrapped. The non-blocking handshake shouldn't be<br>
different (AFAICT) for a server SSL socket than for a client SSL socket.<br>
<br>
Regards<br>
<br>
Antoine.<br>
<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">http://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</blockquote></div>