CONFIG_NET_TCP_AUTO_ACCEPT

Auto accept incoming TCP data

Type: bool

Help

Automatically accept incoming TCP data packet to the valid connection even if the application has not yet called accept(). This speeds up incoming data processing and is done like in Linux. Drawback is that we allocate data for the incoming packets even if the application has not yet accepted the connection. If the peer sends lot of packets, we might run out of memory in this case.

Direct dependencies

NET_TCP && !NET_RAW_MODE && NETWORKING

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/net/ip/Kconfig:293

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:22subsys/net/Kconfig:80

Menu path: (Top) → Networking → Link layer and IP networking support → IP stack → Enable TCP

config NET_TCP_AUTO_ACCEPT
    bool "Auto accept incoming TCP data"
    depends on NET_TCP && !NET_RAW_MODE && NETWORKING
    help
      Automatically accept incoming TCP data packet to the valid
      connection even if the application has not yet called accept().
      This speeds up incoming data processing and is done like in Linux.
      Drawback is that we allocate data for the incoming packets even if
      the application has not yet accepted the connection. If the peer
      sends lot of packets, we might run out of memory in this case.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)