Skip to content

Commit

Permalink
Protect: Add a 30 second timeout argument to the threat history reque…
Browse files Browse the repository at this point in the history
…st (#39766)
  • Loading branch information
nateweller authored Oct 15, 2024
1 parent 9601737 commit 3e271cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Increased threat history request timeout limit from 10 to 30 seconds.


5 changes: 4 additions & 1 deletion projects/plugins/protect/src/class-scan-history.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ public static function fetch_from_api() {
$response = Client::wpcom_json_api_request_as_blog(
$api_url,
'2',
array( 'method' => 'GET' ),
array(
'method' => 'GET',
'timeout' => 30,
),
null,
'wpcom'
);
Expand Down

0 comments on commit 3e271cf

Please sign in to comment.