04-22-2020, 05:50 PM
(04-22-2020, 06:43 AM)zsleo Wrote: Here is an extract code I am using/testing that keeps returning the error: 'Socket Error # 10060'#$D#$A'Connection timed out.'
The code looks fine to me.
Did you verify with a packet sniffer, like Wireshark, that Indy is actually connecting to port 587, and is attempting to use TLS 1.2? Which version of the OpenSSL DLLs are you using?
On which line of code does the error happen on? What does the call stack look like when the error happens?
How long does it take to time out? TIdSSLIOHandlerSocketOpenSSL does use a 30 second timeout on Windows Vista+ if its ReadTimeout property is <= 0 (which it is by default).