You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> var hapi = require('hapi');
undefined
> var server = new hapi.Server({ maxSockets: 23 });
undefined
> require('http').globalAgent.maxSockets
23
This stuffs up my code-minimal way to throttle only some parts of a REST API. Can we have Server set this.agent to false by default, create its own http.Agent if options.maxSockets is present, and have Proxy pull it from request.server to pass to Nipple?
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugBug or defectfeatureNew functionality or improvement
This stuffs up my code-minimal way to throttle only some parts of a REST API. Can we have Server set
this.agent
to false by default, create its own http.Agent ifoptions.maxSockets
is present, and have Proxy pull it fromrequest.server
to pass to Nipple?The text was updated successfully, but these errors were encountered: