Skip to content

Commit

Permalink
enable timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Aug 5, 2021
1 parent 09a994f commit 6a9260e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EANSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class EANSearch {
function __construct($accessToken) {
$this->accessToken = $accessToken;
$ctx = stream_context_create(array('http' => array('timeout' => 180)));
# ini_set('default_socket_timeout', 180);
ini_set('default_socket_timeout', 180);
}

function barcodeLookup($ean, $lang = 1) {
Expand Down

0 comments on commit 6a9260e

Please sign in to comment.