We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b050b1 commit f08710eCopy full SHA for f08710e
src/Internal/ContextClusterWorker.php
@@ -109,7 +109,14 @@ public function run(): void
109
};
110
}
111
112
- $this->joinFuture->await(new TimeoutCancellation(ClusterWatcher::WORKER_TIMEOUT));
+ try {
113
+ $this->joinFuture->await(new TimeoutCancellation(ClusterWatcher::WORKER_TIMEOUT));
114
+ } catch (CancelledException $e) {
115
+ $this->close();
116
+ // Give it a second to reap the result. Generally this never should time out, unless something is seriously broken.
117
+ $this->joinFuture->await(new TimeoutCancellation(1));
118
+ throw $e;
119
+ }
120
} catch (\Throwable $exception) {
121
$this->joinFuture->ignore();
122
throw $exception;
0 commit comments