mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
modify write channel size
This commit is contained in:
parent
6f1e38af4b
commit
7714d41097
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ import (
|
|||
)
|
||||
|
||||
// This is a limit for the number of concurrent talk requests.
|
||||
const maxActiveTalkRequests = 2048
|
||||
const maxActiveTalkRequests = 1024
|
||||
|
||||
// This is the timeout for acquiring a handler execution slot for a talk request.
|
||||
// The timeout should be short enough to fit within the request timeout.
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ func newUDPv5(conn UDPConn, ln *enode.LocalNode, cfg Config) (*UDPv5, error) {
|
|||
sendNoRespCh: make(chan *sendNoRespRequest),
|
||||
respTimeoutCh: make(chan *callTimeout),
|
||||
unhandled: cfg.Unhandled,
|
||||
writeCh: make(chan pendingWrite, 256), // Buffered channel for outgoing packets
|
||||
writeCh: make(chan pendingWrite, 1024), // Buffered channel for outgoing packets
|
||||
// state of dispatch
|
||||
codec: v5wire.NewCodec(ln, cfg.PrivateKey, cfg.Clock, cfg.V5ProtocolID),
|
||||
activeCallByNode: make(map[enode.ID]*callV5),
|
||||
|
|
|
|||
Loading…
Reference in a new issue