Hello,
I am trying to merge llhttp into my project in the WASM manner, but getting failed. After deep-dive, I realized that llhttp was working incorrectly. To clarify the issue, I cloned llhttp individually, configurated the testbed and compared llhttp behaviors on native Linux and WAMR respectively.
llhttp can parse the test HTTP message successfully on native OS (Linux). However, if we built llhttp in the WASM manner and executed it on WAMR, it cannot parse the message and return error, such as "wasm operand stack overflow". It surprised me. Maybe something wrong with WAMR or wasi-sdk?
To reproduce this issue quickly, I attached the my test package. The test steps are stated in the README.md. Please help to figure out why llhttp got failed. Thanks.
llhttp_test_package.zip