Fix for minor bug with the -n parameter #37

Closed
wants to merge 3 commits into
from
Commits on Aug 24, 2012
  1. ENHANCE TRAILING SLASH REGEX

    cjbehm committed Aug 24, 2012
    Replace the regular expression that checks for "bare" domains
    with one that can detect bare domain URLs but allow regular URLs
    that ab can use (e.g. flag http://somedomain.com and allow
    http://somedomain.com/somefile.html).
  2. WORKAROUND ISSUE WITH AB RESULTS

    cjbehm committed Aug 24, 2012
    If a user provides -n 1 for the attack, ab does not return the
    expected result set and bees crashes with a confusing error. To
    avoid this entirely, add a check for the attack command that
    requires at least -n 2 (two requests)
Commits on Jan 3, 2013