HTTP2 with TLS requests failing
angstymeat opened this issue · comments
Michael Love commented
HTTP1 is working correctly, but any requests I make with an encrypted HTTP2 connection logs the following:
PHP Warning: Creating default object from empty value in /opt/xxx/vendor/amphp/http-server/src/Driver/Http2Driver.php on line 247
PHP Notice: Undefined property: stdClass::$clientWindow in /opt/xxx/vendor/amphp/http-server/src/Driver/Http2Driver.php on line 952
PHP Notice: Undefined property: stdClass::$buffer in /opt/xxx/vendor/amphp/http-server/src/Driver/Http2Driver.php on line 954
PHP Notice: Undefined property: stdClass::$buffer in /opt/xxx/vendor/amphp/http-server/src/Driver/Http2Driver.php on line 364
PHP Notice: Undefined property: stdClass::$state in /opt/xxx/vendor/amphp/http-server/src/Driver/Http2Driver.php on line 377
PHP Notice: Undefined property: stdClass::$buffer in /opt/xxx/vendor/amphp/http-server/src/Driver/Http2Driver.php on line 381
This is even failing with the scripts in the examples directory.
If the connection isn't encrypted, or is HTTP1 & encrypted, it works.
Aaron Piotrowski commented
@angstymeat Can you please try with the current master?
Michael Love commented
That appears to be working perfectly!
Niklas Keller commented
Thanks for confirming!