mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +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()) {
|
||||
auto command = absl::StrCat("AUTH ", password, "\r\n");
|
||||
RunCommandAndCheckResultIs(command, "+OK\r\n");
|
||||
}
|
||||
|
||||
if (absl::GetFlag(FLAGS_greet) && password.empty()) {
|
||||
} else if (absl::GetFlag(FLAGS_greet)) {
|
||||
// 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.
|
||||
// Therefore, we send a ping command to ensure that every connection got connected.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue