Client.send() stack overflow fix