From 51917a82e83104ddfd58b8363e85f01d81d836b3 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 24 Feb 2021 19:51:23 +0100 Subject: [PATCH] Document FD_SETSIZE limitation for mbedtls_net_recv_timeout Signed-off-by: Gilles Peskine --- include/mbedtls/net_sockets.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/net_sockets.h b/include/mbedtls/net_sockets.h index 0d61547d0..67fe1e9f2 100644 --- a/include/mbedtls/net_sockets.h +++ b/include/mbedtls/net_sockets.h @@ -219,6 +219,10 @@ int mbedtls_net_send( void *ctx, const unsigned char *buf, size_t len ); * 'timeout' seconds. If no error occurs, the actual amount * read is returned. * + * \note The current implementation of this function uses + * select() and returns an error if the file descriptor + * is beyond \c FD_SETSIZE. + * * \param ctx Socket * \param buf The buffer to write to * \param len Maximum length of the buffer