String ("ConnectionTester"),
String ("SocketFrontEnd"),
client,
- 1000)) {
+ 500)) {
LOGW ("check_socket_frontend's scim_socket_open_connection () failed.\n");
return false;
}
/* Before initializing panel client, make sure the socket frontend is running */
if (!check_socket_frontend ()) {
bool connected = false;
- /* Make sure we are not retrying for more than 10 seconds */
- for (int i = 0; i < 100; ++i) {
+ /* Make sure we are not retrying for more than 5 seconds, in total */
+ for (int i = 0; i < 3; ++i) {
if (check_socket_frontend ()) {
connected = true;
break;
// And set manual to false.
bool check_result = check_socket_frontend ();
- /* Make sure we are not retrying for more than 10 seconds */
- for (int i = 0; i < 100 && !check_result; ++i) {
+ /* Make sure we are not retrying for more than 5 seconds, in total */
+ for (int i = 0; i < 3 && !check_result; ++i) {
check_result = check_socket_frontend ();
scim_usleep (100000);
}
// If there is one Socket FrontEnd running and it's not manual mode,
// then just use this Socket Frontend.
if (!manual) {
- for (int i = 0; i < 200; ++i) {
+ for (int i = 0; i < 3; ++i) {
if (check_result) {
config_module_name = "socket";
load_engine_list.clear ();
load_engine_list.push_back ("socket");
break;
}
- scim_usleep (50000);
+ scim_usleep (100000);
check_result = check_socket_frontend ();
}
}