Skip to content

Commit

Permalink
fix: http code judge
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <lyuzhi.pan@gmail.com>
  • Loading branch information
Dup4 committed Apr 10, 2023
1 parent 49766b0 commit b2caae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions submit-stress-test/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def submit(pid, filepath):
for i in range(3):
try:
res = requests.post(
url=url, headers=headers, data=m, timeout=1)
if res.status_code < 200:
url=url, headers=headers, data=m, timeout=5)
if res.status_code < 500:
break
except Exception as e:
logger.error(e)
Expand Down

0 comments on commit b2caae4

Please sign in to comment.