"Lukáš Gebauer" <lukas.geba...@mlp.cz> schreef op 6 augustus 2023 21:00:33 CEST: > >Just courious, why is used SHA1 code from DCP? My SHA1 code in Synapse >is not enough?
Woops. Yes, sorry. It probably is. I've never knew there was one in Synapse but if it's there then it's better to use that one instead of adding another dependency ;) >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. Yes. The code is far from perfect. I've expanded on what TS already had. But the data could indeed come in fragmented so it's best to build in a buffer and process it when you get a full package. Especially when there is more data to be transferred this will become evident. It's also better to do this in classes and threads instead of in a bare flat fpc-program ;) (That's why it's a first draft, expanded on what was already done.) -- Grtz, Rik _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public