diff --git a/docker-compose.yml b/docker-compose.yml index c1c7eb13..574928f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,10 @@ services: - redis1 ws: + security_opt: + - seccomp:unconfined + cap_add: + - SYS_PTRACE stdin_open: true tty: true image: bsergean/ws:build diff --git a/ws/ws_cobra_publish.cpp b/ws/ws_cobra_publish.cpp index e42bbeef..62b4d85f 100644 --- a/ws/ws_cobra_publish.cpp +++ b/ws/ws_cobra_publish.cpp @@ -53,10 +53,12 @@ namespace ix { cobraMetricsPublisher.push(channel, data); } - cobraMetricsPublisher.suspend(); - std::this_thread::sleep_for(std::chrono::milliseconds(100)); + cobraMetricsPublisher.suspend(); cobraMetricsPublisher.resume(); + + // FIXME: investigate why without this check we trigger a lock + while (!cobraMetricsPublisher.isAuthenticated()) ; } }