Skip to content

Commit

Permalink
[Surrey] Increase Boomi timeout to 3 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
davea committed Sep 17, 2024
1 parent a42c6f1 commit 39cd0e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion perllib/Integrations/Surrey/Boomi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ has ua => (
is => 'rw',
default => sub {
my $self = shift;
my $ua = LWP::UserAgent->new(agent => "FixMyStreet/open311-adapter");
my $ua = LWP::UserAgent->new(
agent => "FixMyStreet/open311-adapter",
timeout => 3 * 60, # Boomi can take longer than the default 60s when handling large/multiple photos.
);
$ua->ssl_opts(SSL_cipher_list => 'DEFAULT:!DH'); # Disable DH ciphers, server's key is too small apparently
my $hash = encode_base64($self->config->{username} . ':' . $self->config->{password}, "");
$ua->default_header('Authorization' => "Basic $hash");
Expand Down

0 comments on commit 39cd0e1

Please sign in to comment.