-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Milestone
Description
hi, recently, I found that the blocking time increases dramatically even in local testnet.
It cost me one whole day to track it down... It turns out that transport does not use the MConnConfig.
Line 374 in 6353862
| transport = p2p.NewMultiplexTransport(nodeInfo, *nodeKey) |
but we use the MConnConfig in Switch.
Lines 105 to 111 in 6353862
| mConfig := conn.DefaultMConnConfig() | |
| mConfig.FlushThrottle = cfg.FlushThrottleTimeout | |
| mConfig.SendRate = cfg.SendRate | |
| mConfig.RecvRate = cfg.RecvRate | |
| mConfig.MaxPacketMsgPayloadSize = cfg.MaxPacketMsgPayloadSize | |
| sw.mConfig = mConfig |
but the config in Switch does not take effect actually.
Reactions are currently unavailable