X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2FObj%2Fsac-a-push.phh;h=a52b5749bb1d8639c51dbee2af2a561cc6aa5b5a;hp=4d8706bccbecad048d467ad4045dc8d7715be99a;hb=538a0d6de8e953d27fb8b0f0eb664fc33b297761;hpb=e8903530a6cf61a0b06c63bbabed10a813fea097 diff --git a/web/Obj/sac-a-push.phh b/web/Obj/sac-a-push.phh index 4d8706b..a52b574 100644 --- a/web/Obj/sac-a-push.phh +++ b/web/Obj/sac-a-push.phh @@ -846,7 +846,7 @@ class Sac_a_push { else if ($id % SOCK_SHARD_N == $sock_shard_cur) { // already opened socket $buf = fread($sock, 4096); // if socket is closed - if ($buf == FALSE || feof($sock)) { + if ($buf == FALSE || mb_strlen($buf, "ASCII") == 0 || feof($sock)) { $postclose = NULL; // close socket case if ($buf == FALSE) {