Skip to content

Commit

Permalink
Increase request timeout to 10 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Aug 7, 2024
1 parent 3f893f2 commit c520dd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mailchimp/mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function get( $endpoint, $count = 10, $fields = array() ) {
}

$args = array(
'timeout' => 5,
'timeout' => 10,
'redirection' => 5,
'httpversion' => '1.1',
'user-agent' => 'Mailchimp WordPress Plugin/' . get_bloginfo( 'url' ),
Expand Down Expand Up @@ -158,7 +158,7 @@ public function post( $endpoint, $body, $method = 'POST' ) {

$args = array(
'method' => $method,
'timeout' => 5,
'timeout' => 10,
'redirection' => 5,
'httpversion' => '1.1',
'user-agent' => 'Mailchimp WordPress Plugin/' . get_bloginfo( 'url' ),
Expand Down

0 comments on commit c520dd3

Please sign in to comment.