Fix bug where the handshake response was received in chunks