EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Strange rx behavior

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#13214
Posted: 05/06/2010 07:27:23
by neil young (Standard support level)
Joined: 11/05/2007
Posts: 96

Hi again,

SBB 7.2.0.171

Server A: The SBB Stack is driven in TLS mode.

Client B: In order to provoke some erroneous condx I'm sending non TLS packets from the client using the same SBB stack, but client.enabled = false

Client opens the socket connection and starts the initial sequence. Server is receiving raw socket data and calls DataAvailable. I'm immediately getting a OnReceive callback, requesting 2 bytes (which are written). The next and all subsequent callbacks OnReceive have a MaxSize of 0, which did hang in my realisation until now, because I wasn't prepared to get a callback of 0 bytes.

I can fix this, but why do I'm getting a 0 byte request?

Regards
#13216
Posted: 05/06/2010 08:19:43
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

That is how it works. The server obtains packet length from first two bytes received. If this length is 0, 0 bytes are requested with the subsequent OnReceive call.

I agree that this behavior is a bit non-obvious. We will improve the behavior of the components to make them return errors in such cases.
#13223
Posted: 05/06/2010 09:30:38
by neil young (Standard support level)
Joined: 11/05/2007
Posts: 96

Length is in the first two bytes? Is this TLS standard?
Regards
#13225
Posted: 05/06/2010 09:41:27
by Ken Ivanov (EldoS Corp.)

It is defined by SSL2 standard. All SSL2+SSL3+TLS1-compliant clients must use SSL2 client hello for backward compatibility reasons.
#13227
Posted: 05/06/2010 11:09:37
by neil young (Standard support level)
Joined: 11/05/2007
Posts: 96

Ah, yes. Now when you say this I remember to have seen the "Client Hello" in some traces :)

Thanks
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 698 times

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




|

Back to top

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

Got it!