Skip to content

Commit

Permalink
Increase Drain Pool
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed Jun 2, 2020
1 parent ca032dd commit 13cef19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/vmess/encoding/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 13cef19

Please sign in to comment.