@@ -456,8 +456,8 @@ class PolykeyAgent {
456
456
optionsDefaulted . rpc . parserBufferSize ,
457
457
) ,
458
458
sensitive : false ,
459
- handlerTimeoutTime : networkConfig_ . handlerTimeoutTime ,
460
- handlerTimeoutGraceTime : networkConfig_ . handlerTimeoutGraceTime ,
459
+ handlerTimeoutTime : optionsDefaulted . rpc . callTimeoutTime ,
460
+ handlerTimeoutGraceTime : optionsDefaulted . rpc . callTimeoutTime + 2000 ,
461
461
logger : logger . getChild ( RPCServer . name + 'Client' ) ,
462
462
} ) ;
463
463
}
@@ -466,12 +466,13 @@ class PolykeyAgent {
466
466
( await WebSocketServer . createWebSocketServer ( {
467
467
connectionCallback : ( rpcStream ) =>
468
468
rpcServerClient ! . handleStream ( rpcStream ) ,
469
- host : networkConfig_ . clientHost ,
470
- port : networkConfig_ . clientPort ,
469
+ host : optionsDefaulted . clientServiceHost ,
470
+ port : optionsDefaulted . clientServicePort ,
471
471
tlsConfig,
472
- maxIdleTimeout : networkConfig_ . maxIdleTimeout ,
473
- pingIntervalTime : networkConfig_ . pingIntervalTime ,
474
- pingTimeoutTimeTime : networkConfig_ . pingTimeoutTimeTime ,
472
+ // FIXME: Not sure about this, maxIdleTimeout doesn't seem to be used?
473
+ maxIdleTimeout : optionsDefaulted . client . keepAliveTimeoutTime ,
474
+ pingIntervalTime : optionsDefaulted . client . keepAliveIntervalTime ,
475
+ pingTimeoutTimeTime : optionsDefaulted . client . keepAliveTimeoutTime ,
475
476
logger : logger . getChild ( 'WebSocketServer' ) ,
476
477
} ) ) ;
477
478
if ( rpcServerAgent == null ) {
@@ -490,11 +491,11 @@ class PolykeyAgent {
490
491
} ) ,
491
492
middlewareFactory : rpcUtilsMiddleware . defaultServerMiddlewareWrapper (
492
493
undefined ,
493
- networkConfig_ . clientParserBufferByteLimit ,
494
+ optionsDefaulted . rpc . parserBufferSize ,
494
495
) ,
495
496
sensitive : true ,
496
- handlerTimeoutTime : networkConfig_ . handlerTimeoutTime ,
497
- handlerTimeoutGraceTime : networkConfig_ . handlerTimeoutGraceTime ,
497
+ handlerTimeoutTime : optionsDefaulted . rpc . callTimeoutTime ,
498
+ handlerTimeoutGraceTime : optionsDefaulted . rpc . callTimeoutTime + 2000 ,
498
499
logger : logger . getChild ( RPCServer . name + 'Agent' ) ,
499
500
} ) ;
500
501
}
@@ -769,8 +770,7 @@ class PolykeyAgent {
769
770
} ) ;
770
771
await this . nodeManager . start ( ) ;
771
772
await this . nodeConnectionManager . start ( {
772
- host : option
773
- nodeManager : this . nodeManager ,
773
+ host : optionss ,
774
774
handleStream : ( stream ) => this . rpcServerAgent . handleStream ( stream ) ,
775
775
} ) ;
776
776
await this . nodeGraph . start ( { fresh } ) ;
0 commit comments