mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +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) {
|
||||
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_message} = 'Timeout reached';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user