Skip to content

Commit

Permalink
make sure unix sockets are tagged correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Nov 19, 2010
1 parent 5d6a03c commit a6d8425
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions src/node_io_watcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,4 @@ void IOWatcher::Dump() {
}




} // namespace node

0 comments on commit a6d8425

Please sign in to comment.