Updated server to correctly handle large messages.