Our application sometimes sends thousands of files in response to a request. Since mod_python relies on the file descriptors to be closed for you when the resource poll is freed, we run out of file descriptors for no good reason. The attached patch closes the fd after apr_file_open() is done with it.
Description
Our application sometimes sends thousands of files in response to a request. Since mod_python relies on the file descriptors to be closed for you when the resource poll is freed, we run out of file descriptors for no good reason. The attached patch closes the fd after apr_file_open() is done with it.