TLS handshake error first record does not look like a tsl hand shake
Then do not use TLS.
what is the reason for getting this error .
You are trying to use TLS where it is not supported by the other partner of the connection.
Sorry, but it is really hard to tell anything more, without knowing, what, how and maybe why you are doing what you do.
Without knowing more, I would guess that you’re dialing a server that doesn’t support TLS (or you’re using the wrong port, or something else is happening).
Thank for your response .
It is working perfectly , but some time it through this error .
Application is working perfectly .