Fix long messages disconnecting client