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
Bug Description
In
PooldispatchersocketPathoption is not passed to theconnectifconnectis a function.Reproducible By
Expected Behavior
Expecting to see
socketPathin options, passed to theconnectfunction.When
connectis specified as object - it works, but for function you just forget to passsocketPath.Logs & Screenshots
Environment
Additional context