mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix for recvfrom() hang when the new CONFIG_NET_TCP_RECVDELAY is set to zero (from Max Holtzberg)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5148 42af7a65-404d-4744-a932-0658087f49c3
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