mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
comments
This commit is contained in:
parent
7c917be696
commit
a173a19c8c
1 changed files with 1 additions and 3 deletions
|
@ -614,9 +614,7 @@ void Driver::Connect(unsigned index, const tcp::endpoint& ep) {
|
||||||
if (!password.empty()) {
|
if (!password.empty()) {
|
||||||
auto command = absl::StrCat("AUTH ", password, "\r\n");
|
auto command = absl::StrCat("AUTH ", password, "\r\n");
|
||||||
RunCommandAndCheckResultIs(command, "+OK\r\n");
|
RunCommandAndCheckResultIs(command, "+OK\r\n");
|
||||||
}
|
} else if (absl::GetFlag(FLAGS_greet)) {
|
||||||
|
|
||||||
if (absl::GetFlag(FLAGS_greet) && password.empty()) {
|
|
||||||
// TCP Connect does not ensure that the connection was indeed accepted by the server.
|
// TCP Connect does not ensure that the connection was indeed accepted by the server.
|
||||||
// if server backlog is too short the connection will get stuck in the accept queue.
|
// if server backlog is too short the connection will get stuck in the accept queue.
|
||||||
// Therefore, we send a ping command to ensure that every connection got connected.
|
// Therefore, we send a ping command to ensure that every connection got connected.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue