amphp / http-server

An advanced async HTTP server library for PHP, perfect for real-time apps and APIs with high concurrency demands.

Home Page:https://amphp.org/http-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP2 with TLS requests failing

angstymeat opened this issue · comments

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.

@angstymeat Can you please try with the current master?

That appears to be working perfectly!

Thanks for confirming!