Skip to content

Commit 87dd65f

Browse files
authored
Merge pull request brianc#1592 from chentsulin/patch-1
use net.Socket instead of net.Stream
2 parents 50b1221 + 875236f commit 87dd65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var BINARY_MODE = 1
1919
var Connection = function (config) {
2020
EventEmitter.call(this)
2121
config = config || {}
22-
this.stream = config.stream || new net.Stream()
22+
this.stream = config.stream || new net.Socket()
2323
this._keepAlive = config.keepAlive
2424
this.lastBuffer = false
2525
this.lastOffset = 0

0 commit comments

Comments
 (0)