diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-16 02:33:01 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-16 02:33:01 +0000 |
commit | 2fa893134fdc69e0b82152bdf71362a428438da2 (patch) | |
tree | a73ac3397318ff3bed33d0f893620294c39c07af /apps | |
parent | 4d73d9348961a7288164f6d9c8f525a3f5a2f93d (diff) | |
download | px4-firmware-2fa893134fdc69e0b82152bdf71362a428438da2.tar.gz px4-firmware-2fa893134fdc69e0b82152bdf71362a428438da2.tar.bz2 px4-firmware-2fa893134fdc69e0b82152bdf71362a428438da2.zip |
Document recvfrom() bug
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4399 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/netutils/ftpd/ftpd.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/netutils/ftpd/ftpd.c b/apps/netutils/ftpd/ftpd.c index d021205f7..f6ddf64b8 100755 --- a/apps/netutils/ftpd/ftpd.c +++ b/apps/netutils/ftpd/ftpd.c @@ -917,10 +917,14 @@ static ssize_t ftpd_recv(int sd, FAR void *data, size_t size, int timeout) int errval = errno; /* Special case some TCP read errors. The client side will break the - * connection after the file has been sent. The NuttX socket layer - * will return an error with errno == ENOTCONN. But perhaps that is - * wrong, perhaps it should return 0 (end-of-file) in that case? In - * that event, we will want to report end-of-file here. + * connection after the file has been sent. + */ +#warning FIXME + /* When the client breaks the connection, the NuttX socket layer will + * return an error with errno == ENOTCONN. This is wrong! It should + * return 0 (end-of-file) in that case! We work around the bug and + * report end-of-file for that case here. This needs to be fixed + * someday. */ if (errval == ENOTCONN) |