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

When piping to a response, and an error occurs, end the response #6

Merged
merged 1 commit into from Oct 30, 2011
Merged

When piping to a response, and an error occurs, end the response #6

merged 1 commit into from Oct 30, 2011

Conversation

naholyr
Copy link
Contributor

@naholyr naholyr commented Oct 30, 2011

For the moment the samples in documentation won't work with unexisting files. In those cases, the stream is ended, but not the response.
Plus, as there is no data passed with the "end" event of the stream, there is no clean way to detect why it has been ended and then properly end the response on the other side.
So I propose to end the response directly (as expected from documentation), when such an error occurs.

mikeal added a commit that referenced this pull request Oct 30, 2011
When piping to a response, and an error occurs, end the response
@mikeal mikeal merged commit 5bad464 into mikeal:master Oct 30, 2011
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.

None yet

2 participants