Fixed bug sending the package of the server.

When the amount of data in bytes 65463 formed incorrect data packet
Merge pull request #47 from dlarin/master

Fixed bug sending the package of the server.