| 884 | |
| 885 | #http caller thread |
| 886 | class HTTPThread(threading.Thread): |
| 887 | def run(self): |
| 888 | try: |
| 889 | while flag<2: |
| 890 | code=httpcall(url) |
| 891 | if (code==500) & (safe==1): |
| 892 | set_flag(2) |
| 893 | except Exception, ex: |
| 894 | pass |
| 895 | |
| 896 | # monitors http threads and counts requests |
| 897 | class MonitorThread(threading.Thread): |