MCPcopy Create free account
hub / github.com/chainreactors/spray / maybeScheduleCheck

Method maybeScheduleCheck

core/pool/brutepool.go:642–651  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

640}
641
642func (pool *BrutePool) maybeScheduleCheck() {
643 if pool.CheckPeriod > 0 && int(pool.Statistor.ReqTotal)%pool.CheckPeriod == 0 {
644 pool.doCheck()
645 return
646 }
647 if pool.ErrPeriod > 0 && pool.failedCount > 0 && pool.failedCount%pool.ErrPeriod == 0 {
648 pool.failedCount++
649 pool.doCheck()
650 }
651}
652
653func (pool *BrutePool) checkRedirect(redirectURL string) bool {
654 if pool.random == nil || pool.random.RedirectURL == "" {

Callers 1

handleBaselineMethod · 0.95

Calls 1

doCheckMethod · 0.95

Tested by

no test coverage detected