提交 924e7910 编写于 作者: Y youngwolf 提交者: youngowlf

A trivial change.

上级 56b7dc3d
......@@ -378,7 +378,10 @@ void start_test(int repeat_times, char model, test_client& client, size_t send_t
if (0 == model)
send_msg_one_by_one(client, msg_num, msg_len, msg_fill);
else
{
puts("if ST_ASIO_WANT_MSG_SEND_NOTIFY defined, only support model 0!");
break;
}
#else
if (0 == model)
send_msg_concurrently(client, send_thread_num, msg_num, msg_len, msg_fill);
......@@ -449,19 +452,7 @@ int main(int argc, const char* argv[])
std::string str;
std::getline(std::cin, str);
if (str.empty())
continue;
else if (is_testing)
{
puts("testing has not finished yet!");
continue;
}
else if (QUIT_COMMAND == str)
sp.stop_service();
else if (RESTART_COMMAND == str)
{
sp.stop_service();
sp.start_service(thread_num);
}
;
else if (LIST_STATUS == str)
{
printf("link #: " ST_ASIO_SF ", valid links: " ST_ASIO_SF ", invalid links: " ST_ASIO_SF "\n", client.size(), client.valid_size(), client.invalid_object_size());
......@@ -475,6 +466,15 @@ int main(int argc, const char* argv[])
client.do_something_to_all(boost::bind(&test_socket::suspend_dispatch_msg, _1, false));
else if (LIST_ALL_CLIENT == str)
client.list_all_object();
else if (is_testing)
puts("testing has not finished yet!");
else if (QUIT_COMMAND == str)
sp.stop_service();
else if (RESTART_COMMAND == str)
{
sp.stop_service();
sp.start_service(thread_num);
}
else
{
if ('+' == str[0] || '-' == str[0])
......
......@@ -367,7 +367,10 @@ void start_test(int repeat_times, char model, test_client& client, size_t send_t
if (0 == model)
send_msg_one_by_one(client, msg_num, msg_len, msg_fill);
else
{
puts("if ST_ASIO_WANT_MSG_SEND_NOTIFY defined, only support model 0!");
break;
}
#else
if (0 == model)
send_msg_concurrently(client, send_thread_num, msg_num, msg_len, msg_fill);
......@@ -438,19 +441,7 @@ int main(int argc, const char* argv[])
std::string str;
std::getline(std::cin, str);
if (str.empty())
continue;
else if (is_testing)
{
puts("testing has not finished yet!");
continue;
}
else if (QUIT_COMMAND == str)
sp.stop_service();
else if (RESTART_COMMAND == str)
{
sp.stop_service();
sp.start_service(thread_num);
}
;
else if (LIST_STATUS == str)
{
printf("link #: " ST_ASIO_SF ", valid links: " ST_ASIO_SF ", invalid links: " ST_ASIO_SF "\n", client.size(), client.valid_size(), client.invalid_object_size());
......@@ -464,6 +455,15 @@ int main(int argc, const char* argv[])
client.do_something_to_all([](test_client::object_ctype& item) {item->suspend_dispatch_msg(false);});
else if (LIST_ALL_CLIENT == str)
client.list_all_object();
else if (is_testing)
puts("testing has not finished yet!");
else if (QUIT_COMMAND == str)
sp.stop_service();
else if (RESTART_COMMAND == str)
{
sp.stop_service();
sp.start_service(thread_num);
}
else
{
if ('+' == str[0] || '-' == str[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册