jwbuurlage/Motor — comment on commit f23c0154b31135bd59eba9b31eb292c6a7a437a9
File:  line 0
By nitrix:

You can use this code, but not for production yet. There's a flaw in sf::Packet. I told LaurentGomillaz about it but it's not in his priority list.

Actually, sf::Packet is sent in two different packets (so 2 steps). First a packet with a *size* Uint32 is sent. Then a data packet with a length of *size* is sent. To problem occurs if a hacker were to send a size of, say, 2GB. Because Laurent's code loop until it received enough data, every other connections are waiting.

That is a problem only if the server is coded using SFML. In that case, you may want to avoid sf::Packet and create your own Packet class until its fixed.