Skip to content
  1. Oct 07, 2000
  2. Oct 06, 2000
  3. Oct 05, 2000
  4. Oct 04, 2000
  5. Oct 03, 2000
    • Jeff Trawick's avatar
      Change ap_send_fd() so that it returns a proper apr_status_t value · 2eeab211
      Jeff Trawick authored
      instead of the number of bytes sent.
      
      default_handler() ignores the ap_send_fd() return code, but
      mod_file_cache doesn't.  When mod_file_cache's handler called
      ap_send_fd(), the client would get the desired file plus an
      error document (500 internal server error), which was delivered
      because mod_file_cache's handler returned an error since
      ap_send_fd() returned non-zero.
      
      Also in this commit is a hack to be able to compile when APACHE_XLATE
      is defined.
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86380 13f79535-47bb-0310-9956-ffa450edef68
      2eeab211
    • Jeff Trawick's avatar
      Change core_input_filter() so that it returns an empty brigade upon · bd8a2822
      Jeff Trawick authored
      FIN/EOF or error.  This meshes with what getline() looks for.  It isn't
      perfect, but it avoids some nasty loops consuming all available storage
      on http/1.1 connections.  In keepalive state, we call getline to read the
      next request...  getline() calls core_input_filter() (indirectly)...
      core_input_filter() calls apr_recv() which returns APR_SUCCESS/0 bytes
      to signal FIN/EOF.  But core_input_filter() returned a bucket with length
      zero to getline(), so getline() called core_input_filter() again.
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86379 13f79535-47bb-0310-9956-ffa450edef68
      bd8a2822