| 3462 | |
| 3463 | #http caller thread |
| 3464 | class HTTPThread(threading.Thread): |
| 3465 | def run(self): |
| 3466 | try: |
| 3467 | while flag<2: |
| 3468 | code=httpcall(url) |
| 3469 | if (code==500) & (safe==1): |
| 3470 | set_flag(2) |
| 3471 | except Exception, ex: |
| 3472 | pass |
| 3473 | |
| 3474 | # monitors http threads and counts requests |
| 3475 | class MonitorThread(threading.Thread): |