Skip to content

Commit

Permalink
Adjusting constants to have:
Browse files Browse the repository at this point in the history
 * Less sensitive timeout adjust (TIMEOUT_ADJUST_LIMIT = 50)
 * Higher min timeout for "high speed connections" (TIMEOUT_MIN = 0.35)
  • Loading branch information
andresriancho committed Mar 10, 2015
1 parent 4176366 commit d0aa731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions w3af/core/data/url/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
DEFAULT_TIMEOUT = 6

# Run the timeout adjustment every N HTTP requests
TIMEOUT_ADJUST_LIMIT = 25
TIMEOUT_ADJUST_LIMIT = 50

# Used to calculate the timeout based on the average response time from the
# remote site. timeout = average_response_time * TIMEOUT_MULT_CONST
Expand All @@ -46,4 +46,4 @@
# care by TIMEOUT_MULT_CONST but in some cases that's not enough.
#
# Thus I've decided to set a MIN timeout:
TIMEOUT_MIN = 0.15
TIMEOUT_MIN = 0.35

0 comments on commit d0aa731

Please sign in to comment.