Changeset 1909

Show
Ignore:
Timestamp:
08/27/08 12:52:51 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1904 r1909  
     12008-08-27  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/connection.c (cherokee_connection_build_header): Fixes 
     4        a problem with scgi/fcgi/cgi and keep-alive connections. Reported 
     5        by Rui Lopes <rgl@ruilopes.com> 
     6 
     7        * qa/171-SCGI-Keepalive.py, qa/Makefile.am: Adds a new QA test. It 
     8        ensures that the SCGI handler replies Connection: Keep-Alive 
     9        connections without closing the connection. 
     10 
    1112008-08-26  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    212 
  • cherokee/trunk/cherokee/connection.c

    r1880 r1909  
    622622                        if (strcasestr (conn->header_buffer.buf, "Content-Length: ") == NULL) 
    623623                                conn->keepalive = 0; 
    624                 } 
    625                  
    626                  
    627                 if ((! HANDLER_SUPPORTS (conn->handler, hsupport_length)) && 
    628                     (! HANDLER_SUPPORTS (conn->handler, hsupport_chunked))) 
     624                         
     625                } else if ((! HANDLER_SUPPORTS (conn->handler, hsupport_length)) && 
     626                           (! HANDLER_SUPPORTS (conn->handler, hsupport_chunked))) 
    629627                { 
    630628                        conn->keepalive = 0; 
  • cherokee/trunk/qa/Makefile.am

    r1800 r1909  
    175175168-Deflate-Encoding.py \ 
    176176169-Pipermail.py \ 
    177 170-Error-ContentLength.py 
     177170-Error-ContentLength.py \ 
     178171-SCGI-Keepalive.py 
    178179 
    179180test: