X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fsac-a-push.phh;h=d9ee5ad1f42c4b6485801b06b62af8c8c84180b2;hb=994648dc54861cf65520654bc6020b51859155bb;hp=e4e020da15dd1d48d8682ac1e64bf883ea3854f1;hpb=aa1fa37d0bd35d6f8d7b55ec1a6a92140f4ce9e0;p=brisk.git diff --git a/web/Obj/sac-a-push.phh b/web/Obj/sac-a-push.phh index e4e020d..d9ee5ad 100644 --- a/web/Obj/sac-a-push.phh +++ b/web/Obj/sac-a-push.phh @@ -156,6 +156,8 @@ function spu_process_info($stream_info, &$method, &$header, &$get, &$post, &$coo printf("A COUNT: [%s] %d\n", $a[0], count($a)); for ($i = 0 ; $i < count($a) ; $i++) { $b = explode('=', $a[$i]); + if ($b[0] == "") + continue; $get[$b[0]] = urldecode($b[1]); } } @@ -603,7 +605,7 @@ class Sac_a_push { foreach ($this->socks as $k => $sock) { $id = intval($sock); if (isset($this->s2u[$id])) { - if ($this->s2u[$id]->sess == '') { + if ($this->s2u[$id]->the_end) { if ($this->s2u[$id]->rd_socket_get() != NULL) { $this->s2u[$id]->rd_socket_set(NULL); } @@ -614,6 +616,7 @@ class Sac_a_push { } } } + $this->app->users_cleanup(); } function run() @@ -848,6 +851,7 @@ class Sac_a_push { if ($rret == FALSE) { // FIXME: manage 404 !!! printf("TODO: fix unknown page\n"); + fclose($new_socket); } } }