-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http2 protocol not handled correctly, and not recognize libnghttp2.so by ffi. #12
Comments
@xpader It'd be great to get a binary dump of the received / sent bytes to find the bug in our Which OS / distro do you use that has these paths? |
@kelunik OS is Ubuntu 20.04.5 LTS x64, and how to get a binary dump with received / sent bytes? |
After change to HPackNgHttp2, some error appeared: |
@xpader don't worry about the binary dump, I did some fuzzing yesterday and discovered several strange cases I need to investigate further. |
I fixed the |
I have a http request example to reproducer this error (still exists in version 3.1.3), but the example include some sensitive infomation, how could I send this to you? |
FFI memory leak very exaggerated, and memory is leak outer of PHP memory manager. |
You can send it to |
Mail has been sent to you, any updates? |
@xpader Do you use the |
@kelunik No. |
@xpader Yes, I received it, I should have had another look at it before writing that comment. Anyway, I could reproduce the issue and have fixed it now. Thanks for reporting! |
Version amphp/http-client 4.6.2.
PHP Version: 8.0, 8.1
Some request from out linux server (Ubuntu 20.04) always return
Amp\Http\Client\Connection\Http2ConnectionException: The HTTP/2 connection from '192.168.1.112:41306' to '****:443' closed
, but from local develop machine (MacOS 13.4) always success.After some dig, I found that reason is local machine can correct locate
libnghttp2.dylib
to useHPackNgHttp2
, but server can't locatelibnghttp2.so
.By apt, I found that libnghttp2 package is
libnghttp2-14
in server, and files list:There is no
libnghttp2.so
file in server, onlylibnghttp2.so.14
, when I changelibnghttp2.so
tolibnghttp2.so.14
in here:hpack/src/Internal/HPackNghttp2.php
Line 73 in cf4f166
It's worked.
There's two problem here:
GPT give me a answer that we can create a symbol link to real libnghttp2.so.* file or use
ldconfig -p | grep 'libnghttp2.so' | awk '{print $4}'
to locate it.The text was updated successfully, but these errors were encountered: