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

Commit 3fc2a73

Browse files
committed
Merge pull request #34 from jezmck/master
Added CURLOPT_TIMEOUT of ten seconds.
2 parents 1e033c4 + eee8210 commit 3fc2a73

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)