mirror of https://github.com/nodejs/node.git
make sure unix sockets are tagged correctly
parent
5d6a03c9fe
commit
a6d8425382
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -557,6 +557,4 @@ void IOWatcher::Dump() {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace node
|
||||
|
|
Loading…
Reference in New Issue