From c520dd3945ec4730931a46548deb56ff267190bc Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Wed, 7 Aug 2024 20:00:01 +0530 Subject: [PATCH] Increase request timeout to 10 seconds. --- lib/mailchimp/mailchimp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mailchimp/mailchimp.php b/lib/mailchimp/mailchimp.php index 99b28a5..bbe077e 100644 --- a/lib/mailchimp/mailchimp.php +++ b/lib/mailchimp/mailchimp.php @@ -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' ), @@ -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' ),