Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mozilla/tuxedo into bouncer-tests
Browse files Browse the repository at this point in the history
Conflicts:
	bouncer/php/index.php
  • Loading branch information
brandonsavage committed Jan 10, 2013
2 parents 03f65fb + 0650c81 commit 2d8b031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions bouncer/php/index.php
Expand Up @@ -5,6 +5,7 @@
* @subpackage pub
*/
require_once('./cfg/config.php'); // config file that defines constants

require_once('./functions.php'); // The functions

// if we don't have an os, make it windows, playing the odds
Expand Down
5 changes: 3 additions & 2 deletions sentry/sentry.pl
Expand Up @@ -15,7 +15,7 @@
my $start_timestamp = time;
my %ua_options = ('keep_alive' => 5);
my $ua = LWP::UserAgent::Determined->new(%ua_options);
$ua->timeout(5);
$ua->timeout(10);
$ua->agent("Mozilla Mirror Monitor/1.0");

my $netres = Net::DNS::Resolver->new();
Expand Down Expand Up @@ -265,7 +265,8 @@ sub log_this {
$update_sth->execute($location->{id}, $mirror->{id}, '1', '1');
}
elsif (( $res->{_rc} == 404 ) || ( $res->{_rc} == 403 )) {
$deactivate_sth->execute($location->{id}, $mirror->{id}, '0', '0');
log_this "FAILED. rc=" . $res->{_rc} . "\n";
$update_sth->execute($location->{id}, $mirror->{id}, '0', '0');
}
else {
log_this "FAILED. rc=" . $res->{_rc} . "\n";
Expand Down

0 comments on commit 2d8b031

Please sign in to comment.