Closed mreho closed 2 years ago
Manually merged in with 1.1.71
After considering the use of CURLOPT_TIMEOUT to fix the login with recent UDM PROs under specific conditions (still not clear which conditions these are exactly), I get the feeling it’s more a bandaid than a real fix of the root cause. The option can be useful anyway for general use, but I’d prefer we figure out why these failures occur and exactly under which conditions.
@mreho I stumbled across something that may be related: apparently, as of cURL version 7.62.0 the value for cURL option CURLOPT_HTTP_VERSION is CURL_HTTP_VERSION_2TLS: https://curl.se/libcurl/c/CURLOPT_HTTP_VERSION.html
I believe setting this option to CURL_HTTP_VERSION_1_1 could fix your issues. Can you please confirm?
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
From the feedback we've received, it looks as if the timeout issue is resolved by changing the default HTTP version option for cURL back to 1.1. The other changes have already been merged. Thanks for contributing!
Hi @malle-pietje, Sorry for this late reply, very busy at this time.. Happy that this bug has been fixed, thank you !
@mreho With the latest release (1.1.76) I've removed several unnecessary cURL options including some per your suggestions. Thanks
Unifi controllers allow us to create RADIUS accounts without a
tunnel_type
or atunnel_medium_type
defined.With these changes,
tunnel_type
andtunnel_medium_type
are now optional.With the XOR operator, if
tunnel_type
is set,tunnel_medium_type
must be too, and vice versa.Tested and approved on PHP 8.0.9.