Issue Details (XML | Word | Printable)

Key: MODPYTHON-36
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Nicolas Lehuen
Reporter: Matt Wilson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

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

Created: 18/Mar/05 02:20 AM   Updated: 05/Mar/06 01:47 PM
Component/s: None
Affects Version/s: 3.1.3
Fix Version/s: 3.2.7

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works mod_python-3.1.3-close-fd.patch 2005-03-18 02:20 AM Matt Wilson 0.4 kB
Environment:
Linux 2.6 x86
Apache HTTPD 2.0.52
mod_python 3.1.3

Resolution Date: 18/Mar/05 05:20 AM


 Description  « Hide
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.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #157971 Thu Mar 17 20:16:29 UTC 2005 nlehuen Fix for #MODPYTHON-36 : close fd after ap_send_fd() in req_sendfile(). (Patch by Matt Wilson)
Files Changed
MODIFY /httpd/mod_python/trunk/src/requestobject.c