AgentAwareLostConnectionDetector
class AgentAwareLostConnectionDetector implements LostConnectionDetector (View source)
Treats an unreachable cloud-agent runtime socket as a lost connection so the worker exits and the pod restarts — the only way to recover an agent that has died in-pod. Every other exception is delegated to parent instance.
Methods
bool
causedByLostConnection(Throwable $e)
Determine if the given exception was caused by a lost connection.
Details
__construct(LostConnectionDetector $detector)
Create a new detector instance.
bool
causedByLostConnection(Throwable $e)
Determine if the given exception was caused by a lost connection.