httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37790] New: - server blocks on error return from POST_READ_REQUEST
Date Mon, 05 Dec 2005 15:25:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37790>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37790

           Summary: server blocks on error return from POST_READ_REQUEST
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: nick@webthing.com


The following code was sent to me as a test case.  It blocks for a long time!  
  
int test(request_rec *r) {  
        ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, r->server,  
"Return an error");  
        return HTTP_FORBIDDEN;  
}  
static void register_hooks(apr_pool_t *p)  
{  
    ap_hook_post_read_request(test, NULL, NULL, APR_HOOK_MIDDLE);  
}  
 
When run, it blocks in ap_discard_request_body, called from ap_die. 
 
The bug seems to be that it's trying to read input before attaching the 
HTTP_IN filter.  The patch attached fixes it, though I'm not sure it's 
optimal.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message