Merge pull request #1592 from chentsulin/patch-1

use net.Socket instead of net.Stream
This commit is contained in:
Charmander 2018-03-14 23:33:27 +00:00 committed by GitHub
commit 87dd65fda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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