zephyr/subsys/net/lib/sockets
Robert Lubos 8a4e489739 net: sockets: dtls: Fix handshake with socket offloading
Fix `poll()` handling for DTLS clients when the underlying socket is an
offloaded socket. As in this case no `k_poll()` is used underneath, it's
not possible to monitor the handhshake status with `tls_established`
semaphore. Instead, do the following:

1. If no handhshake is in progress yet, just drop the incoming data -
   it's the client who should initiate the handshake, any data incoming
   before that should not be processed.
2. If handshake is currently in progress, lift the `POLLIN` flag and add
   small delay to allow the other thread to proceed with the handshake.
3. Otherwise, just proceed as usual.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2021-07-16 22:09:58 -04:00
..
CMakeLists.txt net: socket: packet: using pckt sckt for passing the PPP dialup data 2021-04-01 09:43:56 +03:00
getaddrinfo.c net: dns: Fix multiple IP DNS resolution 2021-06-07 23:54:55 -04:00
getnameinfo.c
Kconfig net: sockets: Make NET_SOCKETS_POSIX_NAMES be on by default 2021-04-13 13:00:53 -04:00
socket_offload.c
socketpair.c net: sockets: socketpair: Rename read/write signals 2021-07-02 22:22:42 -04:00
sockets_can.c net: socket send timeout option 2021-02-24 14:16:33 +02:00
sockets_internal.h net: socket: Allow microsecond accuracy in zsock_select() 2021-06-17 15:23:13 +03:00
sockets_misc.c
sockets_net_mgmt.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets_packet.c net: socket: packet: using pckt sckt for passing the PPP dialup data 2021-04-01 09:43:56 +03:00
sockets_select.c net: socket: Allow microsecond accuracy in zsock_select() 2021-06-17 15:23:13 +03:00
sockets_tls.c net: sockets: dtls: Fix handshake with socket offloading 2021-07-16 22:09:58 -04:00
sockets.c net: lib: sockets: Fix assertion failure when zsock_close() 2021-07-12 20:16:37 -04:00