| 260 | |
| 261 | #http caller thread |
| 262 | class HTTPThread(threading.Thread): |
| 263 | def run(self): |
| 264 | try: |
| 265 | while flag<2: |
| 266 | code=httpcall(url) |
| 267 | if (code==500) & (safe==1): |
| 268 | set_flag(2) |
| 269 | except Exception, ex: |
| 270 | pass |
| 271 | |
| 272 | # monitors http threads and counts requests |
| 273 | class MonitorThread(threading.Thread): |