@@ -1467,7 +1467,7 @@ function emitListeningNT(self) {
14671467
14681468
14691469function listenInCluster ( server , address , port , addressType ,
1470- backlog , fd , exclusive , flags ) {
1470+ backlog , fd , exclusive , flags , options ) {
14711471 exclusive = ! ! exclusive ;
14721472
14731473 if ( cluster === undefined ) cluster = require ( 'cluster' ) ;
@@ -1487,8 +1487,8 @@ function listenInCluster(server, address, port, addressType,
14871487 fd : fd ,
14881488 flags,
14891489 backlog,
1490+ ...options ,
14901491 } ;
1491-
14921492 // Get the primary's server handle, and listen on it
14931493 cluster . _getServer ( server , serverQuery , listenOnPrimaryHandle ) ;
14941494
@@ -1575,8 +1575,18 @@ Server.prototype.listen = function(...args) {
15751575 if ( options . path && isPipeName ( options . path ) ) {
15761576 const pipeName = this . _pipeName = options . path ;
15771577 backlog = options . backlog || backlogFromArgs ;
1578- listenInCluster ( this , pipeName , - 1 , - 1 ,
1579- backlog , undefined , options . exclusive ) ;
1578+ listenInCluster ( this ,
1579+ pipeName ,
1580+ - 1 ,
1581+ - 1 ,
1582+ backlog ,
1583+ undefined ,
1584+ options . exclusive ,
1585+ undefined ,
1586+ {
1587+ readableAll : options . readableAll ,
1588+ writableAll : options . writableAll ,
1589+ } ) ;
15801590
15811591 if ( ! this . _handle ) {
15821592 // Failed and an error shall be emitted in the next tick.
0 commit comments