-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
ability to close the response stream early #124
Comments
Thanks for reporting! I think this is a good idea. |
Indeed, I've tested the two mini lua web servers: redbean and mako, |
It is also possible to get hold of the net.Conn and then close that one, but it's a tiny bit more involved, since one has to set up a Please test if the current functionality in the |
Thanks for your response.
then I visit http://127.0.0.1:3000/index.lua |
Thanks for testing! I'll add code to close the actual connection. |
In nginx-lua/openresty, I can close the http response early (avoid my users waiting) and continue doing things that cost time on my server:
Does the algernon web server have such an API? for example "end()":
The text was updated successfully, but these errors were encountered: