Skip to content

Commit e71e773

Browse files
author
Marius Burkard
committed
Merge branch '6266-add-socket-timeout-when-querying-eu-vat-id-verification-server' into 'develop'
Resolve "Add socket timeout when querying EU VAT-ID verification server" Closes #6266 See merge request ispconfig/ispconfig3!1546
2 parents ddb6792 + 32aecc6 commit e71e773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/lib/classes/validate_client.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ function check_vat_id ($field_name, $field_value, $validator){
175175
}
176176
}
177177
try {
178-
$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl");
178+
ini_set("default_socket_timeout", 5);
179+
$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl", array('connection_timeout' => 5));
179180
$params = array('countryCode' => $cc, 'vatNumber' => $vn);
180181
try{
181182
$r = $client->checkVat($params);

0 commit comments

Comments
 (0)