Revision: 7458 http://sourceforge.net/p/ipcop/svn/7458 Author: owes Date: 2014-04-11 11:33:08 +0000 (Fri, 11 Apr 2014) Log Message: ----------- Be more gentle and do not die.
Modified Paths: -------------- ipcop/trunk/src/scripts/makegraphs.pl ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5 Modified: ipcop/trunk/src/scripts/makegraphs.pl =================================================================== --- ipcop/trunk/src/scripts/makegraphs.pl 2014-04-11 11:17:56 UTC (rev 7457) +++ ipcop/trunk/src/scripts/makegraphs.pl 2014-04-11 11:33:08 UTC (rev 7458) @@ -500,7 +500,10 @@ my $host = "127.0.0.1"; my $port = "82"; - $sock = IO::Socket::INET->new(PeerAddr => scalar($host), PeerPort => $port, Proto => 'tcp') or die("$host:$port: $!"); + if (!($sock = IO::Socket::INET->new(PeerAddr => scalar($host), PeerPort => $port, Proto => 'tcp'))) { + print "Could not connect to proxy manager. Proxy probably disabled.\n"; + return; + } $sock->autoflush(1); print $sock "GET cache_object://$host/info HTTP/1.0\n\n"; my @result = <$sock>; @@ -511,7 +514,6 @@ print FILE $_; } close(FILE); - } Modified: ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5 =================================================================== --- ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5 2014-04-11 11:17:56 UTC (rev 7457) +++ ipcop/trunk/updates/2.1.5/ROOTFILES.i486-2.1.5 2014-04-11 11:33:08 UTC (rev 7458) @@ -3,6 +3,7 @@ /home/httpd/cgi-bin/index.cgi /home/httpd/cgi-bin/iptablesgui.cgi /home/httpd/cgi-bin/upload.cgi +/usr/local/bin/makegraphs.pl /usr/local/bin/upgrade.sh /usr/local/sbin/setup ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn