# HG changeset patch # User Dan # Date 1219557849 14400 # Node ID 87fe0dec153697e80485c6ba087e0d90ae96ed45 # Parent 65e70ada71c917f56562b7030be82ec6aee71670 Out with the old (commented out as it was) request reading code, please diff -r 65e70ada71c9 -r 87fe0dec1536 webserver.php --- a/webserver.php Sun Aug 24 01:28:52 2008 -0400 +++ b/webserver.php Sun Aug 24 02:04:09 2008 -0400 @@ -445,42 +445,6 @@ $last_line = $line; } - /* - $last_line = ''; - $client_headers = ''; - if ( defined('HTTPD_WS_CHILD') ) - { - $remote->set_timeout(1); - } - if ( $line = $remote->read_normal() ) - { - do - { - $line = str_replace("\r", "", $line); - if ( empty($line) ) - continue; - $last_line_check = ( HTTPD_SOCKET_LAYER != 'Raw' || ( HTTPD_SOCKET_LAYER == 'Raw' && $last_line == "\n" ) ); - if ( $line == "\n" && $last_line_check ) - break; - $client_headers .= $line; - $last_line = $line; - $line = $remote->read_normal() - } - while ( true ); - } - else - { - if ( defined('HTTPD_WS_CHILD') ) - { - if ( $remote->timed_out() ) - { - status('[debug] keep-alive connection timed out'); - continue; // will jump back to the start of the loop and kill the child process - } - } - } - */ - // parse request $client_headers = trim($client_headers);