Fixed CAP negotiation causing connections to hang