Fix a bug where recv[from]() would hang when remote host gracefully closed connection

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5539 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2013-01-19 19:18:44 +00:00
parent 070651221f
commit 1094575ce5
3 changed files with 28 additions and 2 deletions
+4
View File
@@ -3989,3 +3989,7 @@
Marcelo, adapted to use kconfig-frontends.
* net/send(): Add logic to work around delayed ACKs by splitting
packets (contributed by Yan T.).
* net/recvfrom(): Fix a bug. When the host closes a connection
(gracefully). recv[from]() returned success and the closure
was never detected. Hmmm.. I don't know why the network monitor
did not catch this event. This is an important bug fix.