From 77105edf5ec7f22c6cde0d087ab6e7fbe98b9630 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Tue, 30 Sep 2008 07:41:17 +0000 Subject: [PATCH] update: new log line to debug server problems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12559 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 57845bec8..92b803c75 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -205,7 +205,7 @@ my $messaging_file_name; our $client_fai_log_dir = "/var/log/fai"; # queue which stores taskes until one of the $max_children children are ready to process the task -my @tasks = qw(); +#my @tasks = qw(); my @msgs_to_decrypt = qw(); my $max_children = 2; @@ -3328,9 +3328,11 @@ POE::Component::Server::TCP->new( Alias => "TCP_SERVER", Port => $server_port, ClientInput => sub { - my ($kernel, $input) = @_[KERNEL, ARG0]; - push(@tasks, $input); + my ($kernel, $input, $heap, $session) = @_[KERNEL, ARG0, HEAP, SESSION]; + my $session_id = $session->ID; + my $remote_ip = $heap->{'remote_ip'}; push(@msgs_to_decrypt, $input); + &daemon_log("$session_id DEBUG: incoming message from '$remote_ip'", 7); $kernel->yield("msg_to_decrypt"); }, InlineStates => { -- 2.30.2