diff --git a/hulk.py b/hulk.py index 69a35b6..05ae8a5 100644 --- a/hulk.py +++ b/hulk.py @@ -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 5000' + code=5000 except urllib2.URLError, e: #print e.reason sys.exit() @@ -114,7 +114,7 @@ def run(self): try: while flag<2: code=httpcall(url) - if (code==500) & (safe==1): + if (code==5000) & (safe==1): set_flag(2) except Exception, ex: pass @@ -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(5000): t = HTTPThread() t.start() t = MonitorThread()