Extract checking the max number of open files code for gqtp server