Adding support for 10.3.1

Adding keepalive support for the remote_comms sockets, allowing them to reuse the TCP/SSL connection for much better performance in high-load environments.
This commit is contained in:
Alexander Blair
2017-04-07 01:39:58 -07:00
parent 1cb4aca08e
commit 01dfbbbcc5
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ function Database() {
this.sendQueue = async.queue(function (task, callback) {
async.doUntil(
function (intCallback) {
request.post({url: global.config.general.shareHost, body: task.body}, function (error, response, body) {
request.post({url: global.config.general.shareHost, body: task.body, forever: true}, function (error, response, body) {
if (!error) {
return intCallback(null, response.statusCode);
}