You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no easy cross-platform way to detect the out of file descriptors error.
I propose adding a new error to the os package (os.ErrOutOfFileDescriptors) and adding support for it in syscall.Errno via the Is method (as already done with other errors like NoSuchFIle). So matching syscall.EMFILE, syscall.ENFILE on unix, syscall.EMFILE on other platforms.
I am still unsure about the name os.ErrOutOfFileDescriptors or os.ErrTooManyOpenFiles.
The text was updated successfully, but these errors were encountered:
Currently there is no easy cross-platform way to detect the out of file descriptors error.
I propose adding a new error to the os package (
os.ErrOutOfFileDescriptors
) and adding support for it insyscall.Errno
via theIs
method (as already done with other errors like NoSuchFIle). So matchingsyscall.EMFILE
,syscall.ENFILE
on unix,syscall.EMFILE
on other platforms.I am still unsure about the name
os.ErrOutOfFileDescriptors
oros.ErrTooManyOpenFiles
.The text was updated successfully, but these errors were encountered: