diff --git a/src/Client.php b/src/Client.php index dbc5ebe4..5ec8c7bf 100644 --- a/src/Client.php +++ b/src/Client.php @@ -270,10 +270,10 @@ public function setOptions($options) $this->setTypemap($value); break; - // Not used now - // case 'connection_timeout': - // $this->connectionTimeout = $value; - // break; + case 'connectiontimeout': + case 'connection_timeout': + $this->connectionTimeout = $value; + break; default: throw new Exception\InvalidArgumentException('Unknown SOAP client option'); @@ -310,7 +310,7 @@ public function getOptions() $options['local_cert'] = $this->getHttpsCertificate(); $options['passphrase'] = $this->getHttpsCertPassphrase(); $options['compression'] = $this->getCompressionOptions(); - //$options['connection_timeout'] = $this->connectionTimeout; + $options['connection_timeout'] = $this->connectionTimeout; $options['stream_context'] = $this->getStreamContext(); $options['cache_wsdl'] = $this->getWSDLCache(); $options['features'] = $this->getSoapFeatures();