Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit eee8210

Browse files
committed
Added CURL Timeout, hardcoded to 10 seconds
1 parent 1e033c4 commit eee8210

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TwitterAPIExchange.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ public function performRequest($return = true)
193193
CURLOPT_HTTPHEADER => $header,
194194
CURLOPT_HEADER => false,
195195
CURLOPT_URL => $this->url,
196-
CURLOPT_RETURNTRANSFER => true
196+
CURLOPT_RETURNTRANSFER => true,
197+
CURLOPT_TIMEOUT = 10,
197198
);
198199

199200
if (!is_null($postfields))

0 commit comments

Comments
 (0)