Browse Source

make sure unix sockets are tagged correctly

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
a6d8425382
  1. 5
      lib/net.js
  2. 2
      src/node_io_watcher.cc

5
lib/net.js

@ -215,6 +215,10 @@ Stream.prototype.open = function (fd, type) {
setImplmentationMethods(this);
if (this.type === "unix") {
this._writeWatcher.isUnixSocket = true;
}
this._writeWatcher.set(this.fd, false, true);
this.writable = true;
};
@ -520,6 +524,7 @@ Stream.prototype.destroy = function (exception) {
this._writeWatcher.socket = null;
this._writeWatcher.firstBucket = null;
this._writeWatcher.lastBucket = null;
this._writeWatcher.isUnixSocket = false;
ioWatchers.free(this._writeWatcher);
this._writeWatcher = null;
}

2
src/node_io_watcher.cc

@ -557,6 +557,4 @@ void IOWatcher::Dump() {
}
} // namespace node

Loading…
Cancel
Save