Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: ssl communication with ssl, ASP.NET viewstate data´s lost |
luigart From: Munich, Georgia Posts: 1 Member Since: 07/29/04 |
posted July 29, 2004 12:04 PM Hallo we have following problem: We use the PowerTCP SSL.Net (1.0.0.6) product in our product a internal Webserver (in C#), to host a asp.net application. The webserver works fine und 100% correct, if the security is off (security protocol “None”). If the ssl2 security protocol is active, the asp.net application works for some postback´s correct, but sometimes a part of the viewstate data´s is lost. The _tcp.Stream.Read(..) gets only a part of the datas, or none. There is the main method to receive the datas, we use the server class, the “Connection” event handler. public byte[] ReadRequestBytes(int maxBytes) { try { if (WaitForRequestBytes() == 0) return null; int numBytes = _tcp.Available; if (numBytes > maxBytes) numBytes = maxBytes; int numReceived = 0; byte[] buffer = new byte[numBytes]; if (numBytes > 0) { numReceived = _tcp.Stream.Read(buffer, 0, numBytes); } if (numReceived < numBytes) { byte[] tempBuffer = new byte[numReceived]; if (numReceived > 0) { Buffer.BlockCopy(buffer, 0, tempBuffer, 0, numReceived); } buffer = tempBuffer; } return buffer; } catch { return null; } } Is there any programming error, or wrong use of the tcp component? I have absolute no idea, where the problem can be. The code work´s without ssl. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 29, 2004 1:29 PM Please create a very simple sample that demonstrates the problem and email it support@dart.com. If you can reduce it down to something that does not involve ASP.NET it will greatly increase the chances that you will get a quick answer. |
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
![]() |