Browse Source

net.js: Slice the right buffer in _writeOut

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
684740c232
  1. 2
      lib/net.js

2
lib/net.js

@ -490,7 +490,7 @@ Stream.prototype._writeOut = function (data, encoding) {
this._writeWatcher.start();
// Slice out the data left.
var leftOver = data.slice(off + bytesWritten, off + len);
var leftOver = buffer.slice(off + bytesWritten, off + len);
leftOver.used = leftOver.length; // used the whole thing...
// sys.error('data.used = ' + data.used);

Loading…
Cancel
Save