<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_set_deadline_miss_mode(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@F@es_set_deadline_miss_mode"
  },
  "title" : "es_set_deadline_miss_mode(_:_:)"
}
-->

# es_set_deadline_miss_mode(_:_:)

Set the deadline miss mode for the specified client

```
func es_set_deadline_miss_mode(_ client: OpaquePointer, _ mode: es_deadline_miss_mode_t) -> es_return_t
```

## Parameters

`client`

The client to configure

`mode`

The deadline miss mode to set

## Return Value

ES_RETURN_SUCCESS on success, ES_RETURN_ERROR on failure

## Discussion

This determines how the system responds when the client fails to respond to an auth event
within the deadline. The default mode is ES_DEADLINE_MISS_MODE_KILL.

\note This allows clients to defer deadline management to the kernel instead of implementing
their own timeout mechanisms.
\note When `ES_DEADLINE_MISS_MODE_FAIL_CLOSED` is used, if an `AUTH` message is dropped because
the message queue was full, it will be `DENY`ed instead of the usual `ALLOW` behaviour.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)