Code: Select all
MySQL1Connection.Database := 'aaa';
MySQL1Connection.LoginPrompt := false;
MySQL1Connection.Server := 'aaa;
MySQL1Connection.Port := …;
MySQL1Connection.Username := aaa';
MySQL1Connection.Password := 'aa';
MySQL1Connection.Options.Protocol := mpSSL;
MySQL1Connection.IOHandler := MySSLIOHandlerSQL1; //MySSLIOHandlerSQL1 pointed to the storage component where the certificates are stored
MySQL1Connection.Connect;
Unfortunately when I use teh SSL options and the IOHandler, I get random exceptions while running my code. Here are some example exceptions:
- 1. a.exe rasied exceptin class socketException with message "Error on data reading from the connection: A blocking operation was interrupted by a call to WSACancelBlockingCall, Socket Error Code: 10004($2714)
 
- 2. a.exe raised exception class EScError with message 'Socket closed. Cannot receive data'
 
- 3. Protocol error: message is invalid
 
- 4. a.exe raised exception class EScError with message 'protocol error: message is invalid
 
It seems they are more or less similar kind of errors. Can you give me some idea what I am missing or any action to take to solve this issue?
Thanks in advance for your help.