X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fsac-a-push.phh;h=f9255c664385dc345648c7294e6a45ebaa8dbe73;hb=06c425397c3120b1af1388a5176ef130a0e0cc7e;hp=27ed4c4f5f70fa9c35378aa72d9f384c0aa4cc7f;hpb=b3b62ac96b554e6e893176d2e6f22ae660587b5c;p=brisk.git diff --git a/web/Obj/sac-a-push.phh b/web/Obj/sac-a-push.phh index 27ed4c4..f9255c6 100644 --- a/web/Obj/sac-a-push.phh +++ b/web/Obj/sac-a-push.phh @@ -720,7 +720,7 @@ class Sac_a_push { else { $buf = fread($sock, 4096); // if socket is closed - if ($buf == FALSE || mb_strlen($buf, "ASCII") == 0) { + if ($buf == FALSE || feof($sock)) { // close socket case if ($buf == FALSE) { printf("INFO: read return false\n");