MAJOR |
-------+
- BUG: some connection to the named socket fails
- - Page still opened after the server restart
+ - Not simultaneous more then one stream
MINOR |
-------+
WIP - try to be more antivirus-friendly
+ - multiple rows between games
- packetize and automatize php-ancillary and apache module
- into the room local step remains -1
- DISABLED_TO_FIX: DNS access (perform blocking dns requests, must be fixed)
DONE |
------+
+ DONE - Page still opened after the server restart
DONE - log_legal address fix
DONE - manage too fast reload in xynt-streaming
DONE - add xhr as transport layer and manage different streams better
do {
if (!isset($cookie['sess'])
|| (($user = $this->get_user($cookie['sess'], $idx)) == FALSE)) {
- $content = User::stream_fini($s_a_p->rndstr, TRUE);
+ if (($transp = gpcs_var('transp', $get, $post, $cookie)) === FALSE)
+ $transp = "iframe";
+ $content = User::stream_fini($transp, $s_a_p->rndstr, TRUE);
+
$s_a_p->pgflush_try_add($enc, $new_socket, 20, $header_out, $content);
return TRUE;
static function fini($init_string, $base, $blockerr)
{
+ return (sprintf('@BEGIN@ %s window.onbeforeunload = null; window.onunload = null; document.location.assign("%sindex.php"); @END@', ($blockerr ? 'xstm.stop(); ' : ''), $base));
return ("");
}
return new Transport_iframe();
}
}
+ static function gettype($transp)
+ {
+ if ($transp == 'xhr' || $transp == 'htmlfile') {
+ return "Transport_".$transp;
+ }
+ else {
+ return 'Transport_iframe';
+ }
+ }
}
?>
\ No newline at end of file
return ($ret);
} // function maincheck (...
- public static function stream_fini($init_string, $is_unrecoverable)
+ public static function stream_fini($transp, $init_string, $is_unrecoverable)
{
printf("xXx user::stream_fini\n");
// FIXME: dynamic "Transport_" type
- $tans_class = "Transport_iframe";
- $body = $tans_class::fini($init_string, self::base_get(), static::blocking_error($is_unrecoverable));
+ $trans_class = Transport::gettype($transp);
+ $body = $trans_class::fini($init_string, self::base_get(), static::blocking_error($is_unrecoverable));
// ELSE IF XHR THEN:
// return (static::blocking_error($is_unrecoverable));