Skip to content

Commit

Permalink
fix: add timeout to off-query (#9250)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Nov 7, 2023
1 parent a4af10a commit edaf0b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ProductOpener/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ sub execute_tags_query ($type, $query) {
if $log->is_debug();

my $ua = LWP::UserAgent->new();
# Add a timeout to the HTTP query
$ua->timeout(15);
my $resp = $ua->post(
$url,
Content => encode_json($query),
Expand Down

0 comments on commit edaf0b2

Please sign in to comment.