Skip to content

Wrong response when upload fails due to file write stream error - #121

Open
jkryl wants to merge 1 commit into
nodeftpd:masterfrom
jkryl:failed-upload-race
Open

Wrong response when upload fails due to file write stream error#121
jkryl wants to merge 1 commit into
nodeftpd:masterfrom
jkryl:failed-upload-race

Conversation

@jkryl

@jkryl jkryl commented Jan 5, 2017

Copy link
Copy Markdown

The problem is that if file write stream emits an error we call storeStream.end() before setting notErr to false, so finish event handler on file stream thinks there was no error and sends 226 reply, which makes the client to believe that upload was successful even though it failed.

@jkryl jkryl changed the title Double response when upload fails due to file write stream error Wrong response when upload fails due to file write stream error Jan 5, 2017
@mk-pmb

mk-pmb commented Jan 5, 2017

Copy link
Copy Markdown
Contributor

Thanks for finding and reporting this bug!

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.

2 participants