mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 10:43:34 +08:00
Yet another repair for the previouis botched recvfrom() fix; Fix telnet driver: It needs to break out of the read loop if 0 (meaning not conneced) of a value < 0 (an error) is encountered.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5541 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -3993,3 +3993,6 @@
|
||||
(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.
|
||||
* net/recvfrom(): Fix a introduced with the last bugfix. If
|
||||
the peer does an orderly closure of the socket, report 0 not
|
||||
-ENOTCONN
|
||||
|
||||
Reference in New Issue
Block a user