Use cached value correctly inside connectionTypeTls() (#11236)
When Redis is built without TLS support, connectionTypeTls() function keeps searching connection type as cached connection type is NULL. Added another variable to track if we cached the connection type to prevent search after the first time. Noticed a log warning message is printed repeatedly by connectionTypeTls. Co-authored-by:zhenwei pi <pizhenwei@bytedance.com> Co-authored-by:
Oran Agra <oran@redislabs.com>
Please register or sign in to comment