mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 21:03:34 +08:00
Fix for recvfrom() hang when the new CONFIG_NET_TCP_RECVDELAY is set to zero (from Max Holtzberg)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5148 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -3337,4 +3337,8 @@
|
||||
* include/nuttx/usb/usb.h, arch/*/src/*usb.c, and arch/*/src/*otg*.c:
|
||||
Add hooks to to use common, external DMA buffer allocation
|
||||
implementation.
|
||||
* net/recvfrom.c: Don't block in recvfrom if (1) read-ahead buffering
|
||||
is enabled and (2) some data was obtained from read-ahead buffers.
|
||||
Blocking is a bad idea in that case because there is no timeout!
|
||||
(submitted by Max Holtzberg).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user