The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/p2p/stream/common/requestmanager/config.go

20 lines
578 B

package requestmanager
import "time"
// TODO: determine the values in production environment
const (
// throttle to do request every 100 milliseconds
throttleInterval = 100 * time.Millisecond
// number of request to be done in each throttle loop
throttleBatch = 16
// deliverTimeout is the timeout for a response delivery. If the response cannot be delivered
// within timeout because blocking of the channel, the response will be dropped.
deliverTimeout = 5 * time.Second
// maxWaitingSize is the maximum requests that are in waiting list
maxWaitingSize = 1024
)