| 133 | |
| 134 | #http caller thread |
| 135 | class HTTPThread(threading.Thread): |
| 136 | def run(self): |
| 137 | try: |
| 138 | while flag<2: |
| 139 | code=httpcall(url) |
| 140 | if (code==500) & (safe==1): |
| 141 | set_flag(2) |
| 142 | except Exception, ex: |
| 143 | pass |
| 144 | |
| 145 | # monitors http threads and counts requests |
| 146 | class MonitorThread(threading.Thread): |