Permalink
Browse files

return false instead of emitting pause to indicate that pipe should w…

…ait for drain event
  • Loading branch information...
1 parent 5e576f3 commit 7e26fa904d5dc04dd535fabcf0e5ae196dd794d9 @abram abram committed Apr 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/simple/test-http-client-pipe.js
@@ -15,10 +15,10 @@ SlowStream.prototype.write = function(buffer) {
this.output += buffer.toString();
console.log('wrote data.');
var self = this;
- this.emit('pause');
setTimeout(function() {
self.emit('drain');
}, 100);
+ return false;
};
SlowStream.prototype.end = function() {

0 comments on commit 7e26fa9

Please sign in to comment.