Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hulk.py #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def httpcall(url):
except urllib2.HTTPError, e:
#print e.code
set_flag(1)
print 'Response Code 500'
code=500
print 'Response Code 3000'
code=3000
except urllib2.URLError, e:
#print e.reason
sys.exit()
Expand All @@ -114,7 +114,7 @@ def run(self):
try:
while flag<2:
code=httpcall(url)
if (code==500) & (safe==1):
if (code==3000) & (safe==1):
set_flag(2)
except Exception, ex:
pass
Expand Down Expand Up @@ -148,7 +148,7 @@ def run(self):
url = url + "/"
m = re.search('(https?\://)?([^/]*)/?.*', url)
host = m.group(2)
for i in range(500):
for i in range(3000):
t = HTTPThread()
t.start()
t = MonitorThread()
Expand Down