Repaired allocation error after long message, client has select methods for incoming and outgoing messages