1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 01:45:23 +00:00

Increase Drain Pool

This commit is contained in:
Shelikhoo 2020-06-02 17:11:51 +08:00
parent ca032dd00f
commit 13cef19430
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -126,7 +126,7 @@ func parseSecurityType(b byte) protocol.SecurityType {
func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.RequestHeader, error) {
buffer := buf.New()
behaviorRand := dice.NewDeterministicDice(int64(s.userValidator.GetBehaviorSeed()))
DrainSize := behaviorRand.Roll(387) + 16 + 38
DrainSize := behaviorRand.Roll(3266) + 16 + 38 + dice.Roll(behaviorRand.Roll(64))
readSizeRemain := DrainSize
drainConnection := func(e error) error {