ssl: why wrap newly accept()ed connections?
Grant Edwards
grant.b.edwards at gmail.com
Thu Feb 3 16:24:11 EST 2022
On 2022-02-03, Kushal Kumaran <kushal at locationd.net> wrote:
>
>> [...]
>> However, example server code I've found does not wrap the newly
>> accepted connection. I've checked, and newsocket is already an
>> <ssl:SSLSocket> object. [...]
>>
>> What is the purpose of wrapping newsocket?
>
> That section is talking about using an "ordinary" socket for the server.
Yep, I missed that.
> bindsocket is a socket.socket. If bindsocket was already a
> ssl.SSLSocket, the wrapping would be already done by accept.
Thanks!
--
Grant
More information about the Python-list
mailing list