Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jkryl
Copy link

@jkryl jkryl commented Jan 5, 2017

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
Copy link
Contributor

mk-pmb commented Jan 5, 2017

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