(closed) nodejs responding an image (via pipe and response.end()) leads into strange behaviour
- by johannesboyne
What the Problem was:
I had 2 different writeStreams!
If WriteStram#1 is closed, the second should be closed too and then it all should be piped...
BUT node is asynchronious so while one has been closed, the other one hasn't. Even the stream.end() was called... well you always should wait for the close event!
thx guys for your help!
I am at…