On Apr 15, 2020, at 12:11, Chris Angelico <[email protected]> wrote:
> 
> On Thu, Apr 16, 2020 at 4:55 AM Ander Juaristi <[email protected]> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/OWCX3EUAFEGBBY7Z4LH4MZ5EIVMWSCT5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to