Skip to content

Commit

Permalink
Pool keep alive connections if forever option is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Mik13 committed Oct 16, 2017
1 parent c94cc1c commit b522b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ The `args` argument allows you to supply arguments that generate an XML document
The `options` object is optional and is passed to the `request`-module.
Interesting properties might be:
* `timeout`: Timeout in milliseconds
* `forever`: Enables keep alive connections
* `forever`: Enables keep-alive connections and pools them

### Client.*method*Async(args) - call *method* on the SOAP service.

Expand Down
2 changes: 1 addition & 1 deletion lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ HttpClient.prototype.buildRequest = function(rurl, data, exheaders, exoptions) {
'Accept': 'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8',
'Accept-Encoding': 'none',
'Accept-Charset': 'utf-8',
'Connection': 'close',
'Connection': !!exoptions.forever ? 'keep-alive' : 'close',
'Host': host + (isNaN(port) ? '' : ':' + port)
};
var attr;
Expand Down

0 comments on commit b522b5e

Please # to comment.