Navigation Menu

Skip to content

Commit

Permalink
mod/chat - Normal method now supports HTTP Keep-Alive - users pane
Browse files Browse the repository at this point in the history
User's pane now also uses keepalives -- if the refresh freq is below
the disconnect timeout, then it is a win. Otherwise it wastes memory
at the server end.
  • Loading branch information
martinlanghoff committed Apr 17, 2006
1 parent dfd1d9e commit 6169ea2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mod/chat/gui_header_js/users.php
Expand Up @@ -99,6 +99,10 @@ function update() {

/// Print headers
$meta = ob_get_clean();


// Use ob to support Keep-Alive
ob_start();
print_header('', '', '', '', $meta, false, '', '', false, 'onload="start()" onunload="stop()"');


Expand Down Expand Up @@ -129,4 +133,11 @@ function update() {
echo '<td></tr>';
}
echo '</table></body></html>';

// support HTTP Keep-Alive
header("Content-Length: " . ob_get_length() );
ob_end_flush();
exit; // no further output


?>

0 comments on commit 6169ea2

Please sign in to comment.