amphp / redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

Home Page:https://amphp.org/redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong order of SELECT and AUTH connection event handlers

brzuchal opened this issue · comments

Using v0.3.3 when a connection is being created the order of event handlers is wrong.
Currently, it sends SELECT and gets -NOAUTH Authentication required. this is because AUTH is being sent after SELECT and should be sent before.
The second thing is if I get an error like -NOAUTH would like to know about that with a proper exception thrown.