You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was experimenting with Lua and follow your examples from documentation.
And I've noticed that timeout on go function seems don't work from time to time...
It works for certain cases but sometimes its not.
I had a simple script which does 5-10 request in a loop. And I've noticed that most of time it stuck on forever waiting of go method.
The behavior is reproducible (I guess).
One strange thing happening when it stucks in most cases I got opened a page in firefox. (That's why I was thinking about redirecting here)
I do provide here an output of trace which I get after Ctrl+C. I do not provide an exact script and data since it seems to be unnecessary. (In the best case scenario every one can bump into this by creating a loop for 5-10 request. In the worst one it's a tricky issue. And most likely I am doing something wrong).
I am not sure if the issue is worth being overseeing. But I decided create an issue since I did spend a couple of hours haven't found any explanation for that behavior so far.
lua: /usr/share/lua/5.4/http/h2_connection.lua:253: interrupted!
stack traceback:
/usr/share/lua/5.4/http/h2_connection.lua:372: in method 'read_http2_frame'
/usr/share/lua/5.4/http/h2_connection.lua:253: in method 'step'
/usr/share/lua/5.4/http/h2_stream.lua:1221: in method 'get_headers'
/usr/share/lua/5.4/http/request.lua:592: in method 'go'
main.lua:18: in local 'request'
main.lua:42: in main chunk
[C]: in ?
lua: /usr/share/lua/5.4/cqueues/socket.lua:103: interrupted!
stack traceback:
[C]: in upvalue '_onerror'
/usr/share/lua/5.4/cqueues/socket.lua:103: in method 'onerror'
/usr/share/lua/5.4/cqueues/socket.lua:138: in upvalue 'oops'
/usr/share/lua/5.4/cqueues/socket.lua:555: in method 'xread'
/usr/share/lua/5.4/http/h2_connection.lua:361: in method 'read_http2_frame'
/usr/share/lua/5.4/http/h2_connection.lua:253: in method 'step'
/usr/share/lua/5.4/http/h2_stream.lua:1221: in method 'get_headers'
/usr/share/lua/5.4/http/request.lua:592: in method 'go'
main.lua:18: in local 'request'
main.lua:42: in main chunk
too much CPU consumption?
Waiting consumes a lot of CPU
Thank you for the library.
The text was updated successfully, but these errors were encountered:
Issue
I was experimenting with Lua and follow your examples from documentation.
And I've noticed that timeout on
go
function seems don't work from time to time...It works for certain cases but sometimes its not.
I had a simple script which does 5-10 request in a loop. And I've noticed that most of time it stuck on forever waiting of
go
method.The behavior is reproducible (I guess).
One strange thing happening when it stucks in most cases I got opened a page in
firefox
. (That's why I was thinking about redirecting here)I do provide here an output of trace which I get after
Ctrl+C
. I do not provide an exact script and data since it seems to be unnecessary. (In the best case scenario every one can bump into this by creating a loop for 5-10 request. In the worst one it's a tricky issue. And most likely I am doing something wrong).I am not sure if the issue is worth being overseeing. But I decided create an issue since I did spend a couple of hours haven't found any explanation for that behavior so far.
A basis of the script I use
most often traces
too much CPU consumption?
Waiting consumes a lot of CPU
Thank you for the library.
The text was updated successfully, but these errors were encountered: