Hello!
Recently I created the
lua-resty-http2, which implements the HTTP/2 protocol on the client side,
furthermore, now you can use the HTTP/2 protocol by
lua-resty-requests easily! Welcome to report
issues and submit PRs.
However, there are some limitations that may limit the HTTP/2 power.
The Cosocket technology doesn't support the ALPN/NPN extensions when ssl handshaking,
as such we cannot use HTTP/2 over SSL/TLS, I have submitted a
patch to the lua-resty-http2
to support the protocol upgrade, just as a temporary way.
The Cosocket model is request-related, this limits the reuse of the HTTP/2 session as we must
match the correct session with the reused connection, but it is difficult when your connection pool
contains more than one alive connection. Also the lua-resty-requests bypasses this, but the schema
is not elegant, which should be changed if there are better ways in the future.
There may still some potential issues inside both lua-resty-http2 and lua-resty-requests,
so again, PRs and Issues are welcome!
Best Regards
Alex Zhang