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);
|
fprintf(stderr,"Error: %s\n",c->context->errstr);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
else if (strlen(c->context->reader->buf)>=32
|
else if (NULL != strstr(c->context->reader->buf,"NOAUTH"))
|
||||||
&& !strncmp(c->context->reader->buf,"-NOAUTH Authentication required.", 32))
|
|
||||||
{
|
{
|
||||||
fprintf(stderr,"Error: %s\n",c->context->reader->buf);
|
fprintf(stderr,"Error: %s\n",c->context->reader->buf);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user