You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Matt Wilson (JIRA)" <ji...@apache.org> on 2005/03/17 18:20:22 UTC

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

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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (MODPYTHON-36) [PATCH] close fd after ap_send_fd() in req_sendfile()

Posted by "Nicolas Lehuen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-36?page=history ]
     
Nicolas Lehuen resolved MODPYTHON-36:
-------------------------------------

      Assign To: Nicolas Lehuen
     Resolution: Fixed
    Fix Version: 3.2.0

The patch is commited to the subversion repository - thanks to Matt.

> [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
>     Assignee: Nicolas Lehuen
>      Fix For: 3.2.0
>  Attachments: mod_python-3.1.3-close-fd.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MODPYTHON-36) [PATCH] close fd after ap_send_fd() in req_sendfile()

Posted by "Matt Wilson (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-36?page=history ]

Matt Wilson updated MODPYTHON-36:
---------------------------------

    Attachment: mod_python-3.1.3-close-fd.patch

> [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
>  Attachments: mod_python-3.1.3-close-fd.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MODPYTHON-36) [PATCH] close fd after ap_send_fd() in req_sendfile()

Posted by "Graham Dumpleton (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-36?page=all ]
     
Graham Dumpleton closed MODPYTHON-36:
-------------------------------------


> [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
>     Assignee: Nicolas Lehuen
>      Fix For: 3.2.7
>  Attachments: mod_python-3.1.3-close-fd.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira