-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node: http(s).globalAgent is missing #18312
Labels
Comments
kt3k
changed the title
node/https :export const globalAgent = undefined;
node: http(s).globalAgent is missing
Mar 21, 2023
This notably prevents https://www.npmjs.com/package/@actions/http-client from working due to it using |
This was referenced Nov 3, 2023
littledivy
pushed a commit
that referenced
this issue
Nov 11, 2023
Fixes #21080 Fixes #18312 --------- Signed-off-by: Jacob Hummer <[email protected]>
kt3k
pushed a commit
that referenced
this issue
Nov 17, 2023
Fixes #21080 Fixes #18312 --------- Signed-off-by: Jacob Hummer <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I quote npm inclusion as below:
var useSSL = endpoint.protocol === 'https:';
var http = require('https');
if (httpOptions.maxSockets) {
http.globalAgent.maxSockets = httpOptions.maxSockets;
} else {
http.globalAgent.maxSockets = 300;
}
Show: Cannot set properties of undefined (setting 'maxSockets')
I have seen: https://deno.land/[email protected]/node/https.ts?source
Legal definition: export const globalAgent = undefined;
Not this: export const globalAgent = new Agent();
The text was updated successfully, but these errors were encountered: