Skip to content

Commit

Permalink
feat: Merge pull request #170 from tadjik1/patch-1
Browse files Browse the repository at this point in the history
Use Keep-Alive HTTP connection
  • Loading branch information
orangejulius authored Oct 23, 2017
2 parents f6d02b2 + 3f3b98d commit cb3f408
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/remotePipResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RemotePIPService.prototype.lookup = function lookup(centroid, _, callback) {
const options = {
uri: `${this.pipServiceURL}/${centroid.lon}/${centroid.lat}`,
method: 'GET',
forever: true, // use keepalive
json: true
};

Expand Down

0 comments on commit cb3f408

Please sign in to comment.