Skip to content
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

validate res_iter before writing to lfcgi.stdout #26

Open
rafis opened this issue Oct 8, 2013 · 0 comments
Open

validate res_iter before writing to lfcgi.stdout #26

rafis opened this issue Oct 8, 2013 · 0 comments

Comments

@rafis
Copy link

rafis commented Oct 8, 2013

[Feature request] Add new parameter t.validate_before_output or t.one_chunk_output or t.complete_output_only, where t is second parameter of _M.run(). If the parameter set and equal to true this will run additional step of res_iter validation storing output in temporary table before actual sending output to lfcgi.stdout. After validation succeeded send stored table using table.concat(). If validation failed then call send_error().

This addition will prevent cases there half of page being outputted and then ======== WSAPI ERROR DURING RESPONSE PROCESSING:.

Or maybe this can be considered as PHP ob_start()/ob_end()/ob_flush() feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant