iclab / centinel

http://iclab.org/
MIT License
34 stars 17 forks source link

opening new thread should delay+retry upon failure #278

Closed rpanah closed 7 years ago

rpanah commented 7 years ago

We should keep retrying with a timeout + delay until a new thread can be made.

 client.py(line 341) ERROR: Error running baseline: can't start new thread
Traceback (most recent call last):
  File "/home/xxx/centinel/centinel/client.py", line 339, in run_exp
    exp.run()
  File "/home/xxx/.centinel/experiments/baseline.py", line 75, in run
    self.run_file(input_file, result)
  File "/home/xxx/.centinel/experiments/baseline.py", line 235, in run_file
    http.get_requests_batch(http_inputs, results=result["http"])
  File "/home/xxx/centinel/centinel/primitives/http.py", line 318, in get_requests_batch
    thread.start()
  File "/usr/lib/python2.7/threading.py", line 736, in start
    _start_new_thread(self.__bootstrap, ())
error: can't start new thread
2017-02-27 01:40:04,334 client.py(line 375) INFO: Waiting for tcpdump to process packets...