AIO: Several fixes for socket transfers, mostly from Victor Mayoral Vilches

This commit is contained in:
Gregory Nutt 2014-10-27 15:54:35 -06:00
parent c232e6ff29
commit f8f6a8fbce
3 changed files with 4 additions and 3 deletions

View File

@ -111,7 +111,7 @@ static void aio_read_worker(FAR void *arg)
aiocbp = aioc_decant(aioc);
#if defined(AIO_HAVE_FILEP) && defined(AIO_HAVE_PSOCK)
if (aioc->fildes >= CONFIG_NFILE_DESCRIPTORS)
if (aiocbp->aio_fildes >= CONFIG_NFILE_DESCRIPTORS)
#endif
#ifdef AIO_HAVE_FILEP
{

View File

@ -129,7 +129,7 @@ static void aio_write_worker(FAR void *arg)
aiocbp = aioc_decant(aioc);
#if defined(AIO_HAVE_FILEP) && defined(AIO_HAVE_PSOCK)
if (aioc->fildes >= CONFIG_NFILE_DESCRIPTORS)
if (aiocbp->aio_fildes >= CONFIG_NFILE_DESCRIPTORS)
#endif
#ifdef AIO_HAVE_FILEP
{

View File

@ -40,6 +40,7 @@
#include <nuttx/config.h>
#include <sched.h>
#include <errno.h>
#include <nuttx/fs/fs.h>
#include <nuttx/net/net.h>
@ -106,7 +107,7 @@ FAR struct aio_container_s *aio_contain(FAR struct aiocb *aiocbp)
#endif
#if defined(AIO_HAVE_FILEP) && defined(AIO_HAVE_PSOCK)
if (aioc->fildes >= CONFIG_NFILE_DESCRIPTORS)
if (aiocbp->aio_fildes >= CONFIG_NFILE_DESCRIPTORS)
#endif
#ifdef AIO_HAVE_FILEP
{