Skip to content

Commit c520dd3

Browse files
committed
Increase request timeout to 10 seconds.
1 parent 3f893f2 commit c520dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mailchimp/mailchimp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function get( $endpoint, $count = 10, $fields = array() ) {
108108
}
109109

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

159159
$args = array(
160160
'method' => $method,
161-
'timeout' => 5,
161+
'timeout' => 10,
162162
'redirection' => 5,
163163
'httpversion' => '1.1',
164164
'user-agent' => 'Mailchimp WordPress Plugin/' . get_bloginfo( 'url' ),

0 commit comments

Comments
 (0)