mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
(http) fix catch timeout message backend lwp (#3747)
This commit is contained in:
parent
86f55e8ab0
commit
ac101795ce
@ -261,7 +261,7 @@ sub request {
|
|||||||
|
|
||||||
if ($self->{response_code} == 500) {
|
if ($self->{response_code} == 500) {
|
||||||
my $client_warning = $self->get_header(name => 'Client-Warning');
|
my $client_warning = $self->get_header(name => 'Client-Warning');
|
||||||
if (defined($client_warning) && $client_warning eq 'Internal response') {
|
if (defined($client_warning) && $client_warning eq 'Internal response' && $self->{response_message} =~ /connection timed out/mi) {
|
||||||
$self->{response_code} = 450;
|
$self->{response_code} = 450;
|
||||||
$self->{response_message} = 'Timeout reached';
|
$self->{response_message} = 'Timeout reached';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user