> For the mailinglists sake I mention here the continuation of the topic.
> I thought it would be more suitable for the FPC-forum because it was 
> more FPC based than Synapse ;)
> (Unless someone disagrees)
>
> https://forum.lazarus.freepascal.org/index.php/topic,64039.msg487749.html#msg487749


I have just two points:

Just courious, why is used SHA1 code from DCP? My SHA1 code in Synapse 
is not enough?

MySQL protocol is TCP based, right? It is stream based protocol, not 
packet based. So, usage of RecvPacket is a big mistake here. If someone 
on the wires fragment reply packet, this code does not work correctly. 
It can be fragmented by TLS tunnel too. Right will be to pickup data by 
series of RecvByte, RecvInteger, RecvBufferEx or RecvTerminated calls, 
depending on the reply packet structure. It using RecvPacket internally, 
and receive multiple packets if it is needed.

Lukas
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to