Socket error 10061 means one of two things:
you tried to connect to an IP/Port that is not listening for connections at all.
you tried to connect to an IP/Port that is listening for connections, but does not have any available slots to accept new client connections at that particular moment.
There is no way to differentiate between the two possibilities on the client side.
There should be no difference in how Indy manages its sockets in Debug vs Release builds. The issue you are seeing has nothing to do with the DLLs, since they are not invoked until after the underlying socket connection is established first (however, you can use Indy's IdOpenSSLSetLibPath()
function in the IdSSLOpenSSLHeaders
unit to tell Indy where the DLLs are located, if needed).
Double-check the Port
property when calling Connect()
. Setting the UseTLS
property can actually change the Port
value. If you need to set both properties, set UseTLS
first, then set Port
if you need to use a different value then what Indy assigned.