mirror of https://github.com/ARMmbed/mbed-os.git
UDP packets are always received as OOB data. Without checking for new OOB data with a call to "_process_oob" then recv_udp never blocks. If a UDP packet is not available then NSAPI_ERROR_WOULD_BLOCK is returned. This causes mbed-os's DNS handling to always fail when flow control is enabled. This patch fixes recv_udp by always calling "_process_oob" regardless of if flow control is enabled. This ensures that recv_udp follows the timeout parameter and waits for new data to arrive. |
||
|---|---|---|
| .. | ||
| 802.15.4_RF | ||
| TARGET_PSA | ||
| storage/blockdevice | ||
| wifi/esp8266-driver | ||