Code

--no-arp comandline option deactivates arp handler
[gosa.git] / gosa-si / gosa-si-server
index a34e5c97cb43c061b496353f7d20dae4579acae6..b51bd4ed1e0fa0d1947ee75ae2b095dea0e65804 100755 (executable)
@@ -331,6 +331,12 @@ sub import_modules {
         if (not $file =~ /(\S*?).pm$/) {
             next;
         }
+
+        if( $no_arp > 0 ) {
+            if( $file =~ /ArpHandler.pm/ ) {
+                next;
+            }
+        } 
         eval { require $file; };
         if ($@) {
             daemon_log("ERROR: gosa-si-server could not load module $file", 1);
@@ -396,6 +402,9 @@ sub create_known_client {
 
 sub client_input {
        my ($heap,$input,$wheel) = @_[HEAP, ARG0, ARG1];
+
+    daemon_log("Incoming msg:\n$input\n", 8);
+
        ######################################
        # forward msg to all imported modules 
        no strict "refs";
@@ -576,6 +585,7 @@ POE::Component::Server::TCP->new
 (
        Port => $server_port,
        ClientInput => \&client_input,
+    Concurrency => 10,
 );
 daemon_log("start socket for incoming xml messages at port '$server_port' ", 1);