Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

AUTH immediately after creating a connection #559

Open
wants to merge 1 commit into
base: 2.8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/redis-benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,11 @@ static client createClient(char *cmd, size_t len, client from) {
c->obuf = sdscatlen(c->obuf, buf, len);
free(buf);
c->prefix_pending++;

//Try sending AUTH immediately
int result = WSIOCP_SocketSend(c->context->fd, (char*)c->obuf,
(int)(sdslen(c->obuf)),
config.el, c, NULL, writeHandlerDone);
}

/* If a DB number different than zero is selected, prefix our request
Expand Down