mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
use net.Socket instead of net.Stream
`net.Stream` is a undocumented legacy naming from node 0.x
4ae320f2b3/lib/net.js (L1762)
This commit is contained in:
parent
50b1221e11
commit
875236fc0b
@ -19,7 +19,7 @@ var BINARY_MODE = 1
|
||||
var Connection = function (config) {
|
||||
EventEmitter.call(this)
|
||||
config = config || {}
|
||||
this.stream = config.stream || new net.Stream()
|
||||
this.stream = config.stream || new net.Socket()
|
||||
this._keepAlive = config.keepAlive
|
||||
this.lastBuffer = false
|
||||
this.lastOffset = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user