Document FD_SETSIZE limitation for mbedtls_net_recv_timeout

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2021-02-24 19:51:23 +01:00
parent 33d816aff9
commit 51917a82e8

View file

@ -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