solr-node icon indicating copy to clipboard operation
solr-node copied to clipboard

Allow custom agent

Open fabiob opened this issue 6 years ago • 1 comments

Sometimes we need to customize the agent used to communicate with Solr. In my specific use case, I need to enable HTTP keep-alive, but I can think of other uses.

The custom agent could be specified when creating the client:

var client = new SolrNode({
    host: '127.0.0.1',
    port: '8983',
    core: 'test',
    protocol: 'http',
    agent: new https.Agent({ keepAlive: true })
});

fabiob avatar Mar 08 '19 17:03 fabiob

I need this feature, too

ted-lee avatar Jul 23 '19 03:07 ted-lee