Apache Mod-Python - Created: (MODPYTHON-36) [PATCH] close fd after ap_send_fd() in req_sendfile()

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > March 2005 > Created: (MODPYTHON-36) [PATCH] close fd after ap_send_fd() in req_sendfile()





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Created: (MODPYTHON-36) [PATCH] close fd after ap_send_fd() in req_sendfile()
Matt Wilson (JIRA)

2005-03-30, 7:20 pm

[PATCH] close fd after ap_send_fd() in req_sendfile()
-----------------------------------------------------

Key: MODPYTHON-36
URL: http://issues.apache.org/jira/browse/MODPYTHON-36
Project: mod_python
Type: Bug
Versions: 3.1.3
Environment: Linux 2.6 x86
Apache HTTPD 2.0.52
mod_python 3.1.3
Reporter: Matt Wilson


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 clos
es the fd after apr_file_open() is done with it.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com