Topic: NO_SESSION_CACHE

I noticed this is an option in ssl.c. What are the pro/cons of defining this flag?

Share

Re: NO_SESSION_CACHE

Pros:  Not having to implement the OS specific locking/unlocking of the session cache mutex in a multi-threaded environment.

Cons:  For the client the con isn't too bad unless the client would otherwise be doing a lot of session resumptions and/or there are device constraints making public key operations extremely slow on the device.  For the server, the cons are pretty big unless there are a low number of clients and they aren't doing session resumption.

Share