Kernel buffer full not detected correctly on recent nodejs versions #41

Closed
nsabovic opened this Issue Apr 18, 2012 · 0 comments

Comments

Projects
None yet
2 participants

Manager.isAvailable() does not detect correctly whether kernel buffer is full, causing reuse of connections in the pool which are busy. On high loads, this causes a performance degradation.

Recent Node.js versions do not have _writeQueue in socket instances, instead they have a _handle object which has writeQueueSize. Look at Socket.prototype._write in node's lib/net.js, it checks for this._handle.writeQueueSize == 0. Alternatively, type:

``` console.log(require('net').Socket.prototype._write.toString())````

3rd-Eden closed this in a8c086f Apr 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment