- for (1 .. 100) {
- my $timeout = time() + 2;
- until ($locks_up[$id] == $peers) {
- if (cond_timedwait $locks_up[$id], $timeout) {
- last LOCK;
- } else {
- return 0;
- }
+ my $timeout = time() + 10;
+ until ($locks_up[$id] == $peers) {
+ if (cond_timedwait $locks_up[$id], $timeout) {
+ last LOCK;
+ } else {
+ return 0;