Contents

fastOpenAllowed(_:)

Allow fast open to be used on a connection.

Declaration

func fastOpenAllowed(_ allowed: Bool) -> Self

Parameters

  • allowed:

    True if fast open should be used, false otherwise.

Discussion

Use fast open for an outbound connection, which may be done at any protocol level. Use of fast open requires that the caller send idempotent data on the connection before the connection may move into the ready state.

As a side effect, this may implicitly enable fast open or early data for protocols in the stack, even if they did not have fast open explicitly enabled on them (such as the option to enable TCP Fast Open).