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

__construct(LostConnectionDetector $detector)

Create a new detector instance.

bool
causedByLostConnection(Throwable $e)

Determine if the given exception was caused by a lost connection.

Details

__construct(LostConnectionDetector $detector)

Create a new detector instance.

Parameters

LostConnectionDetector $detector

bool causedByLostConnection(Throwable $e)

Determine if the given exception was caused by a lost connection.

Parameters

Throwable $e

Return Value

bool

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.