projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lock-meter added in log file.
[brisk.git]
/
web
/
index_rd.php
diff --git
a/web/index_rd.php
b/web/index_rd.php
index
c775dc1
..
fc8aa0c
100644
(file)
--- a/
web/index_rd.php
+++ b/
web/index_rd.php
@@
-58,10
+58,9
@@
if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') {
function shutta()
{
function shutta()
{
- log_rd2("SHUTTA
!".connection_status()
);
+ log_rd2("SHUTTA
[".connection_status()."] !"
);
}
}
-
register_shutdown_function(shutta);
function unrecerror()
register_shutdown_function(shutta);
function unrecerror()
@@
-105,7
+104,9
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
$user = FALSE;
$curtime = time();
$user = FALSE;
$curtime = time();
- if (($proxy_step = User::step_get($sess)) == FALSE) {
+ // NOTE: qui forse si potrebbe fallback-are a una User::load_data
+ // anche se non ce ne dovrebbe essere mai la necessità
+ if (($proxy_step = User::load_step($sess)) == FALSE) {
log_only2("R");
return (FALSE);
}
log_only2("R");
return (FALSE);
}
@@
-139,7
+140,7
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
Room::save_data($room);
unset($room);
}
Room::save_data($room);
unset($room);
}
- log_
lock("
U");
+ log_
main("infolock:
U");
Room::unlock_data($sem);
ignore_user_abort(FALSE);
} // if (($sem = Room::lock_data()) != FALSE) {
Room::unlock_data($sem);
ignore_user_abort(FALSE);
} // if (($sem = Room::lock_data()) != FALSE) {
@@
-153,7
+154,7
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
} // if ($first_loop == TRUE) {
if ($cur_step == $proxy_step['s']) {
} // if ($first_loop == TRUE) {
if ($cur_step == $proxy_step['s']) {
- log_
lock("
P");
+ log_
main("infolock:
P");
return (FALSE);
}
else {
return (FALSE);
}
else {
@@
-167,7
+168,7
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
if (($sem = Room::lock_data()) == FALSE)
break;
if (($sem = Room::lock_data()) == FALSE)
break;
- log_
lock("
P");
+ log_
main("infolock:
P");
$S_load_stat['U_heavy']++;
if (($user = User::load_data($proxy_step['i'], $sess)) == FALSE) {
break;
$S_load_stat['U_heavy']++;
if (($user = User::load_data($proxy_step['i'], $sess)) == FALSE) {
break;