make sure unix sockets are tagged correctly
This commit is contained in:
parent
5d6a03c9fe
commit
a6d8425382
@ -215,6 +215,10 @@ Stream.prototype.open = function (fd, type) {
|
|||||||
|
|
||||||
setImplmentationMethods(this);
|
setImplmentationMethods(this);
|
||||||
|
|
||||||
|
if (this.type === "unix") {
|
||||||
|
this._writeWatcher.isUnixSocket = true;
|
||||||
|
}
|
||||||
|
|
||||||
this._writeWatcher.set(this.fd, false, true);
|
this._writeWatcher.set(this.fd, false, true);
|
||||||
this.writable = true;
|
this.writable = true;
|
||||||
};
|
};
|
||||||
@ -520,6 +524,7 @@ Stream.prototype.destroy = function (exception) {
|
|||||||
this._writeWatcher.socket = null;
|
this._writeWatcher.socket = null;
|
||||||
this._writeWatcher.firstBucket = null;
|
this._writeWatcher.firstBucket = null;
|
||||||
this._writeWatcher.lastBucket = null;
|
this._writeWatcher.lastBucket = null;
|
||||||
|
this._writeWatcher.isUnixSocket = false;
|
||||||
ioWatchers.free(this._writeWatcher);
|
ioWatchers.free(this._writeWatcher);
|
||||||
this._writeWatcher = null;
|
this._writeWatcher = null;
|
||||||
}
|
}
|
||||||
|
@ -557,6 +557,4 @@ void IOWatcher::Dump() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace node
|
} // namespace node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user