--- 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);