-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Response timing out with HTTP2 on get_headers() #156
Comments
Could you try translating your snippet to use the Otherwise try running with the environment variable |
Hi @daurnimator, Thank you for quick response. We changed our implementation to use "http.request" api as per your example file here. Once we followed this approach to set request, our script worked fine with both HTTP1 and HTTP2. Please note that we spent a lot of time on this issue because we assumed the right way to setup the request was how you described it here. This doesn't seem to work with Debian 9 (we only discovered our issue once we upgraded from Debian 8). Is it possible that your suggested solution above is outdated? Thanks again for quick help. |
Okay that indicates that there may be an issue in the
Swapping in the You still haven't shared much context: how did you compile lua-http's dependencies (especially luaossl and cqueues)? Unless you provide a reproducible test case I'm not going to be able to replicate your issue and hence fix it: the best I can do is take educated guesses to narrow things down. |
We installed lua-http via luarocks and other dependencies from Debian (stretch) package. So all standard setup. We didn't compile anything ourselves |
If you installed lua-http from luarocks then luarocks probably installed/compiled luaossl and cqueues itself. |
I can confirm that we have not additionally installed any packages on Debian. Just what's there from luarocks. I can confirm the script we shared is demonstrating the issue on vanilla Debian 9 after installing lua-http from luarocks and nothing else. And the same script works as expected on Debian 8 |
Dear all, I had a related issue with timeout in
before |
Thank you @daurnimator for an excellent package and just as much, your responsive support.
We have observed an issue on Debian 9 with (latest) lua packages installed. The script we are running makes a request to our app, and responds with simple JSON response:
The issue we are observing is that this script times out (on the response) when using HTTP2. When we force the system to use HTTP1 by setting has_alpn variable to nil in http/tls.lua, the response comes back and the
https.request
function returns right away with result=1 and respcode=200.Here's the stack trace when we force exit the script while the response is in process of timing out:
It appears it's stuck polling while fetching (processing?) response headers, but I can't quite understand what's happening here.
I'm hoping (assuming) we are doing something silly with this script and a simple tweak will fix. Thanks in advance.
Lua packages installed:
The text was updated successfully, but these errors were encountered: