In many TCPIP and Web tunning guide, recommends increasing max number of file descriptors
when getting the error "Too many open files"
but, i can't see TIME_WAIT in outputs of "lsof -i"
Does anyone know that TIME_WAIT consumes file descriptors? or not
Best Answer
The file descriptor is used by application to read/write from the socket. Thus if the application call close(), the file descriptor is immediately released.
On the other hand, if the application call shutdown(), file descriptor will remain effective so that application can still read/write from/to the socket.
Quotes from https://oroboro.com/file-handle-leaks-server/: