-
-
Notifications
You must be signed in to change notification settings - Fork 714
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Bug Description
In Pool dispatcher socketPath option is not passed to the connect if connect is a function.
Reproducible By
const dispatcher = new Agent ( {
socketPath: "/var/run/socket",
connect ( options, callback ) {
console.log( options );
process.exit();
}
} )
await fetch( "http://local/", {
dispatcher
} );
Expected Behavior
Expecting to see socketPath in options, passed to the connect function.
When connect is specified as object - it works, but for function you just forget to pass socketPath.
Logs & Screenshots
Environment
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers