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

send a response if the cgi script failed #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kamholz
Copy link

@kamholz kamholz commented Oct 26, 2014

Currently, if a CGI script exits before generating any output, the HTTP response hangs. This PR fixes that by inspecting res.headersSent at the end of the request, and if they have not been sent, sends a generic 500 status response.

There might well be a better way to handle this, but not without going more into the depths of stream-stack than I have time for right now.

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

Successfully merging this pull request may close these issues.

1 participant