Skip to content

Commit

Permalink
add timeout to Botan
Browse files Browse the repository at this point in the history
  • Loading branch information
oksidisko committed Aug 4, 2017
1 parent f97ef4e commit 526b042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Botan.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public function track(Message $message, $eventName = 'Message')
CURLOPT_HTTPHEADER => [
'Content-Type: application/json'
],
CURLOPT_POSTFIELDS => $message->toJson()
CURLOPT_POSTFIELDS => $message->toJson(),
CURLOPT_TIMEOUT => 2
];

curl_setopt_array($this->curl, $options);
Expand Down

0 comments on commit 526b042

Please sign in to comment.