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_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 net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_ioctl.c net: Align the prototype of sock_intf_s::si_ioctl with file_operations::ioctl 2022-09-06 22:46:37 +08:00
udp_ipselect.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_netpoll.c poll: add poll_notify() api and call it in all drivers 2022-09-26 12:06:32 +08:00
udp_notifier.c sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00
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 net/sockopt: move BINDTODEVICE to socket level 2022-08-25 17:56:52 +08:00
udp_txdrain.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
udp_wrbuffer_dump.c
udp_wrbuffer.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp.h net: move ttl field into socket_conn_s struct 2023-05-13 12:39:53 +08:00