3c54d82d81
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. |
||
---|---|---|
.. | ||
Kconfig | ||
Make.defs | ||
udp_callback.c | ||
udp_close.c | ||
udp_conn.c | ||
udp_devpoll.c | ||
udp_finddev.c | ||
udp_input.c | ||
udp_ioctl.c | ||
udp_ipselect.c | ||
udp_netpoll.c | ||
udp_notifier.c | ||
udp_recvfrom.c | ||
udp_send.c | ||
udp_sendto_buffered.c | ||
udp_sendto_unbuffered.c | ||
udp_setsockopt.c | ||
udp_txdrain.c | ||
udp_wrbuffer_dump.c | ||
udp_wrbuffer.c | ||
udp.h |