The timeout in 5.2 only applied to the connect() syscall. Guzzle's timeout
option applies to the total transfer. Replace it by connect_timeout +
read_timeout for backwards compatibility for code that expected the actual
transfer to take an arbitrary amount of time.
};
$options = [
- 'timeout' => $this->options['timeout'],
+ 'connect_timeout' => $this->options['timeout'],
+ 'read_timeout' => $this->options['timeout'],
'allow_redirects' => [
'max' => $this->options['maxDepth'],
'track_redirects' => true,