@@ -440,6 +440,7 @@ var runCmd = &cobra.Command{
440440 attribute .String ("address" , client .Address ),
441441 attribute .Int ("receiveChunkSize" , client .ReceiveChunkSize ),
442442 attribute .String ("receiveDeadline" , client .ReceiveDeadline .String ()),
443+ attribute .String ("receiveTimeout" , client .ReceiveTimeout .String ()),
443444 attribute .String ("sendDeadline" , client .SendDeadline .String ()),
444445 attribute .Bool ("tcpKeepAlive" , client .TCPKeepAlive ),
445446 attribute .String ("tcpKeepAlivePeriod" , client .TCPKeepAlivePeriod .String ()),
@@ -460,6 +461,7 @@ var runCmd = &cobra.Command{
460461 "address" : client .Address ,
461462 "receiveChunkSize" : client .ReceiveChunkSize ,
462463 "receiveDeadline" : client .ReceiveDeadline .String (),
464+ "receiveTimeout" : client .ReceiveTimeout .String (),
463465 "sendDeadline" : client .SendDeadline .String (),
464466 "tcpKeepAlive" : client .TCPKeepAlive ,
465467 "tcpKeepAlivePeriod" : client .TCPKeepAlivePeriod .String (),
@@ -554,13 +556,10 @@ var runCmd = &cobra.Command{
554556 // Create and initialize servers.
555557 for name , cfg := range conf .Global .Servers {
556558 logger := loggers [name ]
557- softLimit , hardLimit := cfg .GetRLimits (logger )
558559 servers [name ] = network .NewServer (
559560 runCtx ,
560561 cfg .Network ,
561562 cfg .Address ,
562- softLimit ,
563- hardLimit ,
564563 cfg .GetTickInterval (),
565564 []gnet.Option {
566565 // Scheduling options
@@ -597,8 +596,6 @@ var runCmd = &cobra.Command{
597596 attribute .String ("name" , name ),
598597 attribute .String ("network" , cfg .Network ),
599598 attribute .String ("address" , cfg .Address ),
600- attribute .Int64 ("softLimit" , int64 (cfg .SoftLimit )),
601- attribute .Int64 ("hardLimit" , int64 (cfg .HardLimit )),
602599 attribute .String ("tickInterval" , cfg .TickInterval .String ()),
603600 attribute .Bool ("multiCore" , cfg .MultiCore ),
604601 attribute .Bool ("lockOSThread" , cfg .LockOSThread ),
0 commit comments