Skip to content

Commit

Permalink
Limit number of concurrent connections to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
talkol committed Dec 27, 2020
1 parent 0d230de commit f6ba180
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dockerhub/dockerhub-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export class DockerHubReader {
private agent: https.Agent;

constructor(private config: DockerHubConfiguration) {
this.agent = new https.Agent();
this.agent = new https.Agent({
maxSockets: 5,
});
}

// TODO: consider switching to API that requires no auth token:
Expand Down

0 comments on commit f6ba180

Please sign in to comment.