These are chat archives for IndySockets/Indy

13th
Aug 2018
mezen
@mezen
Aug 13 2018 11:28
https://stackoverflow.com/questions/28022021/what-socket-error-2-means-in-indy-components#comment44445800_28022021
Interesting, today I got also a "Socket Error # 2" while connecting via TidTCP with an OpenSSL IO Handler to a plaintext TCP Server (written in .NET).
Using Delphi Berlin with stock Indy.
mezen
@mezen
Aug 13 2018 11:34
If I try to reproduce that scenario in a SSCCE I get an "Socket Error # 10060 Connection timed out."
Remy Lebeau
@rlebeau
Aug 13 2018 17:47
@mezen Makes sense if you connect to a plaintext (non-SSL/TLS) server and Indy tries to invoke an SSL/TLS handshake with it, there won't be a valid response. The SSLIOHandler does use a 30-second timeout at the socket layer by default on Vista+, unless you specify your own ReadTimeout