EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElSimpleSSLClient.ReceiveData crashes with one host

Posted: 03/08/2016 06:11:59
by Cristian Sances (Standard support level)
Joined: 03/08/2016
Posts: 4

Hi everybody.

I'm using sample "SSLClientDemo_VS2012".
I've been able to use SendData & ReceiveData methods with diferents hosts but I've found a problem with next host:


Method ReceiveData always is returning an exception:

"Connection lost (error code is 10054)"

Host testlegacy.cardeasexml.com only uses TLS1. I've used TElSimpleSSLClient.Versions property to assign only SBSSLConstants.Unit.sbTLS1 but I have not achieved the desire results.

I do not have any problem with the same code and next hosts:


I suppose I'm doing something wrong, but I do not know what...


private void DoRequest()
         string s;
         byte[] Buffer;

          SecureClient.UseInternalSocket = true;
          short cVersion = SecureClient.CurrentVersion;

            SecureClient.Versions = 0;
            SecureClient.Versions = (short) ((byte)SBSSLConstants.Unit.sbSSL3 | (byte)SBSSLConstants.Unit.sbSSL2 | (byte)(SBSSLConstants.Unit.sbTLS1));
            //(short)((byte)SecureClient.Versions | (byte)SBSSLConstants.Unit.sbSSL2 | (byte)SBSSLConstants.Unit.sbTLS1);

         if (SecureClient.Active)
            Status("Sending request ...");
            string request = "GET / HTTP/1.1\nHost:" + host + "\nUser-Agent: EldoS SSLBlackbox (.NET edition)\nConnection: close\n\n";
            Buffer = SBUtils.Unit.BytesOfString(request);
            SecureClient.SendData(Buffer, 0, Buffer.Length);
         int ToRead;

            Status("Receiving request ...");

         while (SecureClient.Active)
               ToRead = 16384;
               Buffer = new byte[ToRead];      
                    SecureClient.set_CompressionAlgorithms(0, false);
               SecureClient.ReceiveData(ref Buffer, ref ToRead, false);
                    //int i=SecureClient.ReceiveData(Buffer, 0, Buffer.Length, true);
               s = SBUtils.Unit.StringOfBytes(Buffer);
               //s = s.Replace("\r", "");
               tbData.Text = tbData.Text + s;
            catch (Exception ex)
                    MessageBox.Show("Error: " + ex.Message) ;

Could you help me please?
Let me know if you need more information or whatever.

Thank you

Best Regards
Posted: 03/08/2016 06:17:33
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

I’ve noticed there is no Support Access Ticket linked to your user account on EldoS site. Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

If you are evaluating the product and don't have a license yet, please let us know and then you can have support according to Basic support level. Basic support level includes answering basic technical questions that appear during product evaluation period. We also offer Premium support for a purchase from https://www.eldos.com/support/calc.php . You can use Premium Support to get higher level of assistance during your evaluation of our products.
Posted: 03/08/2016 06:23:32
by Eugene Mayevski (Team)

On a side note it would help a lot if you used CODE button located above the text entry box (alternatively you can write [ CODE ] and [ /CODE ] tags by hand) to mark the beginning and the end of the code blocks in your messages. This would enable syntax highlighting and line numbering on the code and make it easier for analysis.

Sincerely yours
Eugene Mayevski



Topic viewed 1593 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!