zephyr/include/net
Jukka Rissanen d88f25bd76 net: tcp: Handle special case where accepted socket is closed
Handle this corner case with TCP connection closing:

1) Client A connects, it is accepted and can send data to us
2) Client B connects, the application needs to call accept()
   before we will receive any data from client A to the application.
   The app has not yet called accept() at this point (for
   whatever reason).
3) Client B then disconnects and we receive FIN. The connection
   cleanup is a bit tricky as the client is in half-connected state
   meaning that the connection is in established state but the
   accept_q in socket queue contains still data which needs to be
   cleared.
4) Client A then disconnects, all data is sent etc

The above was not working correctly as the system did not handle the
step 3) properly. The client B was accepted in the application even
if the connection was closing.

After this commit, the commit called "net: tcp: Accept connections
only in LISTENING state" and related other commits are no longer
needed and are reverted.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2019-10-28 13:58:59 +02:00
..
bt.h
buf.h net: buf: Add net_buf_simple_clone 2019-10-04 20:56:25 +03:00
can.h
coap_link_format.h
coap.h net: coap: Add internal init function to seed message_id 2019-10-04 21:22:55 +03:00
dhcpv4.h
dns_resolve.h
dummy.h
ethernet_mgmt.h
ethernet_vlan.h
ethernet.h
gptp.h
hostname.h
http_client.h
http_parser_state.h
http_parser_url.h
http_parser.h
ieee802154_mgmt.h
ieee802154_radio.h
ieee802154.h
ipv4_autoconf.h
lldp.h
lwm2m.h
mii.h
mqtt.h net: mqtt: Add support for running MQTT over Websocket 2019-10-04 18:48:10 -07:00
net_config.h
net_conn_mgr.h
net_context.h net: tcp: Handle special case where accepted socket is closed 2019-10-28 13:58:59 +02:00
net_core.h
net_event.h
net_if.h net: if: Fix interface initialization with socket offloading 2019-10-15 11:06:40 +03:00
net_ip.h
net_l2.h
net_linkaddr.h
net_mgmt.h
net_offload.h
net_pkt.h net: tcp2: Allow placing the packet into sys_slist_t 2019-10-25 14:33:37 +03:00
net_stats.h net: Add statistics how long packets have spent in TX path 2019-10-14 16:34:48 +03:00
net_timeout.h
openthread.h net: openthread: Update OpenThread version 2019-10-28 13:00:56 +02:00
ppp.h
promiscuous.h
ptp_time.h
sntp.h
socket_can.h
socket_net_mgmt.h
socket_offload_ops.h
socket_offload.h
socket_select.h
socket.h
socketutils.h
tls_credentials.h
trickle.h
udp.h
websocket.h net: websocket: client: Simple API for Websocket client 2019-10-04 16:38:34 +03:00
wifi_mgmt.h
wifi.h