ws cobra publish stress mode fix

This commit is contained in:
Benjamin Sergeant 2019-04-23 16:24:10 -07:00
parent 28210ee31d
commit 28cbe8fbeb
2 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,10 @@ services:
- redis1
ws:
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
stdin_open: true
tty: true
image: bsergean/ws:build

View File

@ -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()) ;
}
}