Skip to content

Emit error on aborted connection#195

Merged
svnlto merged 1 commit intonode-formidable:masterfrom
egirshov:master
Feb 18, 2013
Merged

Emit error on aborted connection#195
svnlto merged 1 commit intonode-formidable:masterfrom
egirshov:master

Conversation

@egirshov
Copy link
Copy Markdown
Contributor

Emit 'error' if connection is closed before request received fully.
This is in a way similar to #145, however here 'aborted' is handled as event (and callback if given will be called on error). Make sure 'end' is not emitted if 'error' already emitted (fixes #107) and vice versa, 'error' is not emitted after 'end' - this means if connection is aborted after request body is fully parsed, formidable would not complain.

Emit 'error' if connection is closed before request received fully.
Adjust test-fixtures to postpone socket.close().

add standalone test case on connection aborted
svnlto added a commit that referenced this pull request Feb 18, 2013
Emit error on aborted connection
@svnlto svnlto merged commit c261318 into node-formidable:master Feb 18, 2013
@dlau dlau mentioned this pull request Oct 15, 2014
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.

"end" emitted after "error"

2 participants