Changeset 114 for branches/stable/cgi-bin
- Timestamp:
- 01/05/05 11:06:37 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/CustIDCK.pm
r113 r114 34 34 # Try to catch failures to connect. If the remote server is up but 35 35 # not responding (this has HAPPENED) we need to break out rather than hanging. 36 my $dbh; 36 37 eval { 37 38 local $SIG{ALRM} = sub { die "failed connection to billing!!" }; 38 39 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"); 40 41 alarm 0; # cancel the alarm 41 42 };
Note:
See TracChangeset
for help on using the changeset viewer.