mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-03 12:28:49 +08:00
Test redis_gateway.
This commit is contained in:
parent
0e052e155e
commit
8a02069411
@ -163,19 +163,53 @@ bool redis_transfer::reply_add_error(const acl::redis_result& obj,
|
|||||||
|
|
||||||
bool redis_transfer::redirect2me(void) {
|
bool redis_transfer::redirect2me(void) {
|
||||||
acl::string buff;
|
acl::string buff;
|
||||||
buff += "*1\r\n";
|
|
||||||
|
buff += "*4\r\n";
|
||||||
|
|
||||||
buff += "*3\r\n";
|
buff += "*3\r\n";
|
||||||
buff += ":0\r\n";
|
buff += ":0\r\n";
|
||||||
buff += ":16383\r\n";
|
buff += ":4000\r\n";
|
||||||
buff += "*3\r\n";
|
buff += "*3\r\n";
|
||||||
buff += "$9\r\n";
|
buff += "$9\r\n";
|
||||||
buff += "127.0.0.1\r\n";
|
buff += "127.0.0.1\r\n";
|
||||||
buff += ":16379\r\n";
|
buff += ":16379\r\n";
|
||||||
buff += "$40\r\n";
|
buff += "$40\r\n";
|
||||||
buff += "5c17f9e161196446a9be4aa1c62c5e1518ece030\r\n";
|
buff += "5c17f9e161196446a9be4aa1c62c5e1518ece030\r\n";
|
||||||
|
|
||||||
|
buff += "*3\r\n";
|
||||||
|
buff += ":4001\r\n";
|
||||||
|
buff += ":8000\r\n";
|
||||||
|
buff += "*3\r\n";
|
||||||
|
buff += "$9\r\n";
|
||||||
|
buff += "127.0.0.1\r\n";
|
||||||
|
buff += ":16379\r\n";
|
||||||
|
buff += "$40\r\n";
|
||||||
|
buff += "6c17f9e161196446a9be4aa1c62c5e1518ece030\r\n";
|
||||||
|
|
||||||
|
buff += "*3\r\n";
|
||||||
|
buff += ":8001\r\n";
|
||||||
|
buff += ":12000\r\n";
|
||||||
|
buff += "*3\r\n";
|
||||||
|
buff += "$9\r\n";
|
||||||
|
buff += "127.0.0.1\r\n";
|
||||||
|
buff += ":16379\r\n";
|
||||||
|
buff += "$40\r\n";
|
||||||
|
buff += "7c17f9e161196446a9be4aa1c62c5e1518ece030\r\n";
|
||||||
|
|
||||||
|
buff += "*3\r\n";
|
||||||
|
buff += ":12001\r\n";
|
||||||
|
buff += ":16383\r\n";
|
||||||
|
buff += "*3\r\n";
|
||||||
|
buff += "$9\r\n";
|
||||||
|
buff += "127.0.0.1\r\n";
|
||||||
|
buff += ":16379\r\n";
|
||||||
|
buff += "$40\r\n";
|
||||||
|
buff += "8c17f9e161196446a9be4aa1c62c5e1518ece030\r\n";
|
||||||
|
|
||||||
if (conn_.write(buff) == (int) buff.size()) {
|
if (conn_.write(buff) == (int) buff.size()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger_error("reply to client error");
|
logger_error("reply to client error");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user