fix: fix benchmark cannot exit when NOAUTH err happens
This commit is contained in:
parent
31110f1caf
commit
ad223e2042
@ -419,8 +419,7 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
|
||||
fprintf(stderr,"Error: %s\n",c->context->errstr);
|
||||
exit(1);
|
||||
}
|
||||
else if (strlen(c->context->reader->buf)>=32
|
||||
&& !strncmp(c->context->reader->buf,"-NOAUTH Authentication required.", 32))
|
||||
else if (NULL != strstr(c->context->reader->buf,"NOAUTH"))
|
||||
{
|
||||
fprintf(stderr,"Error: %s\n",c->context->reader->buf);
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user