@@ -440,6 +440,7 @@ var runCmd = &cobra.Command{
440
440
attribute .String ("address" , client .Address ),
441
441
attribute .Int ("receiveChunkSize" , client .ReceiveChunkSize ),
442
442
attribute .String ("receiveDeadline" , client .ReceiveDeadline .String ()),
443
+ attribute .String ("receiveTimeout" , client .ReceiveTimeout .String ()),
443
444
attribute .String ("sendDeadline" , client .SendDeadline .String ()),
444
445
attribute .Bool ("tcpKeepAlive" , client .TCPKeepAlive ),
445
446
attribute .String ("tcpKeepAlivePeriod" , client .TCPKeepAlivePeriod .String ()),
@@ -460,6 +461,7 @@ var runCmd = &cobra.Command{
460
461
"address" : client .Address ,
461
462
"receiveChunkSize" : client .ReceiveChunkSize ,
462
463
"receiveDeadline" : client .ReceiveDeadline .String (),
464
+ "receiveTimeout" : client .ReceiveTimeout .String (),
463
465
"sendDeadline" : client .SendDeadline .String (),
464
466
"tcpKeepAlive" : client .TCPKeepAlive ,
465
467
"tcpKeepAlivePeriod" : client .TCPKeepAlivePeriod .String (),
@@ -554,13 +556,10 @@ var runCmd = &cobra.Command{
554
556
// Create and initialize servers.
555
557
for name , cfg := range conf .Global .Servers {
556
558
logger := loggers [name ]
557
- softLimit , hardLimit := cfg .GetRLimits (logger )
558
559
servers [name ] = network .NewServer (
559
560
runCtx ,
560
561
cfg .Network ,
561
562
cfg .Address ,
562
- softLimit ,
563
- hardLimit ,
564
563
cfg .GetTickInterval (),
565
564
[]gnet.Option {
566
565
// Scheduling options
@@ -597,8 +596,6 @@ var runCmd = &cobra.Command{
597
596
attribute .String ("name" , name ),
598
597
attribute .String ("network" , cfg .Network ),
599
598
attribute .String ("address" , cfg .Address ),
600
- attribute .Int64 ("softLimit" , int64 (cfg .SoftLimit )),
601
- attribute .Int64 ("hardLimit" , int64 (cfg .HardLimit )),
602
599
attribute .String ("tickInterval" , cfg .TickInterval .String ()),
603
600
attribute .Bool ("multiCore" , cfg .MultiCore ),
604
601
attribute .Bool ("lockOSThread" , cfg .LockOSThread ),
0 commit comments