Skip to content
This repository was archived by the owner on Feb 13, 2018. It is now read-only.

Commit 7728dfe

Browse files
Set socket KeepAlive, useful for streaming requests
1 parent bdcf145 commit 7728dfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/twitter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ TwitterClient.prototype._call = function( requestMethod, requestUri, requestArgs
364364
}
365365
}
366366
var req = require('https').get( http, callback );
367+
req.setSocketKeepAlive( true );
367368
if( timeout ){
368369
req.on('socket', function (socket) {
369370
socket.setTimeout( timeout );

0 commit comments

Comments
 (0)