--- projects/cms/source/host/ihost-perl/ihost.pl 2001/03/12 23:51:15 1.26 +++ projects/cms/source/host/ihost-perl/ihost.pl 2001/03/14 18:00:16 1.27 @@ -9,8 +9,8 @@ # methods as you see fit. # - pjm2@ukc.ac.uk # -# $Author: tdb $ -# $Id: ihost.pl,v 1.26 2001/03/12 23:51:15 tdb Exp $ +# $Author: pjm2 $ +# $Id: ihost.pl,v 1.27 2001/03/14 18:00:16 pjm2 Exp $ #------------------------------------------------------------ $| = 1; @@ -311,6 +311,7 @@ sub send_tcp_heartbeat() { ) or return; if (!defined $sock) { print "IHOST WARNING: Failed to deliver a heartbeat to the i-scream filter.\n"; + &tcp_configure(); return; } @@ -324,6 +325,7 @@ sub send_tcp_heartbeat() { if (!$response eq "OK") { close($sock); print "Server gave wrong response to HEARTBEAT: $response\n"; + &tcp_configure(); return; } @@ -334,6 +336,7 @@ sub send_tcp_heartbeat() { if (!$response eq "OK") { close($sock); print "Server gave wrong response to CONFIG: $response\n"; + &tcp_configure(); return; } @@ -344,6 +347,7 @@ sub send_tcp_heartbeat() { if (!$response eq "OK") { close($sock); print "Server gave wrong response to file list: $response\n"; + &tcp_configure(); return; } @@ -353,12 +357,14 @@ sub send_tcp_heartbeat() { chop $response; if ($response eq "ERROR") { close($sock); + print "Server configuration changed. Reconfiguring with filter manager.\n"; &tcp_configure(); return; } if (!$response eq "OK") { close($sock); print "Server gave wrong response to HEARTBEAT: $response\n"; + &tcp_configure(); return; } @@ -369,6 +375,7 @@ sub send_tcp_heartbeat() { if (!$response eq "OK") { close($sock); print "Server gave wrong response to ENDHEARTBEAT: $response\n"; + &tcp_configure(); return; }