mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 21:06:58 +08:00
AIO: Several fixes for socket transfers, mostly from Victor Mayoral Vilches
This commit is contained in:
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user