From 6a9260e1f7c1a75e23bd96e38492bf7d1be5fd07 Mon Sep 17 00:00:00 2001 From: Jan Willamowius Date: Thu, 5 Aug 2021 16:33:50 +0200 Subject: [PATCH] enable timeout --- EANSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EANSearch.php b/EANSearch.php index 5b69e4f..671decf 100644 --- a/EANSearch.php +++ b/EANSearch.php @@ -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) {