Changeset 114 for branches/stable


Ignore:
Timestamp:
01/05/05 11:06:37 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Second iteration of billing-failure detection.
Whoops, missed the arrangment of "my ..." declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/CustIDCK.pm

    r113 r114  
    3434  # Try to catch failures to connect.  If the remote server is up but
    3535  # not responding (this has HAPPENED) we need to break out rather than hanging.
     36  my $dbh;
    3637  eval {
    3738    local $SIG{ALRM} = sub { die "failed connection to billing!!" };
    3839    alarm 3;    # 3-second timeout.  This may be too aggressive.
    39     my $dbh = DBI->connect ("DBI:Pg:host=billing;dbname=custids", "cidcheck", "c1dch4ck");
     40    $dbh = DBI->connect ("DBI:Pg:host=billing;dbname=custids", "cidcheck", "c1dch4ck");
    4041    alarm 0;    # cancel the alarm
    4142  };
Note: See TracChangeset for help on using the changeset viewer.