timeout in milliseconds, default handshakeTimeout to null