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:
patacongo
2012-09-13 20:37:24 +00:00
parent f6b727fa27
commit 3e7c5c1b43
2 changed files with 22 additions and 0 deletions
+4
View File
@@ -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).