Fixed bug sending the package of the server.

When the amount of data in bytes 65463 formed incorrect data packet