MCPcopy Create free account
hub / github.com/H1R0GH057/Anonymous / HTTPThread

Class HTTPThread

canon.py:380–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378
379#http caller thread
380class HTTPThread(threading.Thread):
381 def run(self):
382 try:
383 while flag<2:
384 code=httpcall(url)
385 if (code==500) & (safe==1):
386 set_flag(2)
387 except Exception, ex:
388 pass
389
390# monitors http threads and counts requests
391class MonitorThread(threading.Thread):

Callers 1

canon.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected