Message272205
| Author |
gvanrossum |
| Recipients |
gvanrossum, j1m, python-dev, vstinner, yselivanov |
| Date |
2016年08月09日.01:40:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAP7+vJLmG91kFBMPDro5zyHjSEm_g-UatwH_CczSRm1bkxxuiQ@mail.gmail.com> |
| In-reply-to |
<1470705904.53.0.242888959153.issue27392@psf.upfronthosting.co.za> |
| Content |
Oh, I see. create_connection(..., ssl=True) creates a default SSLContext,
but create_server(..., ssl=True) is invalid, it requires
ssl=SSLContext(...). I like the latter for connect_accepted_socket(). I
think Jim will happily comply.
What would happen if some other socket type was passed? Would anything go
wrong, assuming it's a socket type that understands connections? (I think
checking for SOCK_STREAM is more important maybe). |
|