summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e1b225)
raw | patch | inline | side by side (parent: 6e1b225)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Jun 2008 13:55:36 +0000 (13:55 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Jun 2008 13:55:36 +0000 (13:55 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11248 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/server_server_com.pm | patch | blob | history |
diff --git a/gosa-si/server/events/server_server_com.pm b/gosa-si/server/events/server_server_com.pm
index 1621ad1246be47899dc65dad536c01a2a16863a5..b1abc8e12092e0761870f483f72ac74d14dae698 100644 (file)
my $source = @{$msg_hash->{'source'}}[0];
my $hostname = @{$msg_hash->{'client'}}[0];
my $macaddress = @{$msg_hash->{'macaddress'}}[0];
-
# if new client is known in known_clients_db
my $check_sql = "SELECT * FROM $main::known_clients_tn WHERE (macaddress LIKE '$macaddress')";
my $check_res = $main::known_clients_db->select_dbentry($check_sql);
}
# do not run into a endless loop
- if ($i > 100) { last; }
+ if ($i > 50) { last; }
usleep(100000);
}
&main::daemon_log("$session_id ERROR: At new_foreign_clients: host '$hostname' is reported as a new foreign client, ".
"but the host is still registered at this server. So, the new_foreign_client-msg will be ignored: $msg", 1);
}
-
}
# -> client will be deleted from known_clients_db
# -> inserted to foreign_clients_db
- my $del_sql = "SELECT * FROM $main::known_clients_tn WHERE (hostname='$hostname')";
+ my $del_sql = "DELETE FROM $main::known_clients_tn WHERE (hostname='$hostname')";
my $del_res = $main::known_clients_db->exec_statement($del_sql);
-
my $func_dic = { table => $main::foreign_clients_tn,
primkey => ['hostname'],
hostname => $hostname,