On Apr 15, 2020, at 12:11, Chris Angelico <ros...@gmail.com> wrote:
> 
> On Thu, Apr 16, 2020 at 4:55 AM Ander Juaristi <a...@juaristi.eus> wrote:
>> TLS session resumption is currently supported, but only within the same
>> process. To the best of my knowledge, there is no way to save the TLS
>> session to a file to resume the TLS session later on. Please tell me how
>> this is done if I'm wrong.
> 
> Not a Python SSL expert, but have you tried pickling the session object?
> 
> If that doesn't work, then I would say that adding pickle support
> (using the semantics you describe) would be the cleanest way to do
> this.

I think this avoids the problem of “how do we effectively tell people that this 
could be dangerous if the pickles are stored somewhere accessible (or, worse, 
write-accessible)”, because it becomes just a specific case of the general 
danger the pickle module already warns about?

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/OWCX3EUAFEGBBY7Z4LH4MZ5EIVMWSCT5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to