incubator-nuttx/net/udp
Fotis Panagiotopoulos 3c54d82d81 net: Fix task block when devif_send fails.
When a task needs to send data, a callback is allocated and the
transmission is happening in a worker task through devif_send.
Synchronization between the two tasks (sender & worker) is
achieved by a semaphore.

If devif_send fails, this semaphore was never posted, leaving
the sending task blocked indefinitely. This commit fixes this
by checking the return code of netif_send, and posting this
semaphore in case of failure.

Polling then stops, and execution is resumed on the sending
task.
2023-06-01 17:05:54 +08:00
..
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Make.defs
udp.h net: move ttl field into socket_conn_s struct 2023-05-13 12:39:53 +08:00
udp_callback.c net/udp: Add drop count when limited by recv bufsize 2023-02-24 14:36:01 +02:00
udp_close.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
udp_conn.c net/semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
udp_devpoll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
udp_finddev.c net: modify find device logic 2023-02-12 01:25:34 +08:00
udp_input.c
udp_ioctl.c
udp_ipselect.c
udp_netpoll.c
udp_notifier.c
udp_recvfrom.c net/udp: remove FAR for non-pointer variables 2023-05-19 02:40:38 +08:00
udp_send.c net: move ttl field into socket_conn_s struct 2023-05-13 12:39:53 +08:00
udp_sendto_buffered.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_sendto_unbuffered.c net: Fix task block when devif_send fails. 2023-06-01 17:05:54 +08:00
udp_setsockopt.c
udp_txdrain.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
udp_wrbuffer.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_wrbuffer_dump.c