HTTP_Request2_ConnectionException since v2.4.0
beephotography opened this issue · 2 comments
Hi there,
since updating to v2.4.0
we have problems connecting from our local docker-environment to external APIs through our network proxy.
We receive a message Failed to enable secure connection when connecting through proxy
when connecting.
With v2.3.0
everything worked fine (with our exact same proxy configuration)
Unfortunately I can't give some more hints.
Can somebody investigate this problem or give any workaround?
Regards
Andy
UPDATE:
It seems that it could have something to do with the following line:
// Run socket in non-blocking mode, to prevent possible problems with
// HTTPS requests not timing out properly (see bug #21229)
stream_set_blocking($this->socket, false);
in File vendor/pear/http_request2/HTTP/Request2/SocketWrapper.php
(line 134)
When I comment out this line with v2.4.0
it works again. Comment in: breaks again.
Oops, looks like it's even mentioned in PHP doc comments
https://www.php.net/manual/en/function.stream-socket-enable-crypto.php#75442
Thanks for the report, will fix ASAP.