These are chat archives for IndySockets/Indy
FSSLClone.SSLOptions := SSL.SSLOptions;is wrong, don't do that. The SSLOptions property setter does not make a copy, it assigns ownership. On desktop platforms, sharing a TIdSSSLOptions object is a memory leak and a pointer error as you end up with multiple TIdSSLIOHandlerSocketOpenSSL objects trying to free the same TIdSSLOptions object during destruction. On mobile systems, ARC should be handling those issues, but it is still a logic bug having multiple client-side TIdSSLIOHandlerSocketOpenSSL objects sharing the same TIdSSLOptions object in general.