Skip to content

There is an adjustable hard limit on File Descriptors / Handles imposed by a downstream library #21

@seisatsu

Description

@seisatsu

The ESP32 VFS Module has a downstream library that sets a maximum File Descriptor / File Handle, so I need to rewrite how I handle assigning them in DeviceFS, in order to reuse old ones. The default maximum is 64, but can be defined by the user by redefining FD_SETSIZE, in our project. However, we won't have infinite space to work with since higher descriptors are used for sockets. So, I still need to do some garbage collection on file handles.

See https://github.com/pycom/esp-idf-2.0/blob/master/components/newlib/include/sys/types.h

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions