From: Matteo Nastasi (mop) Date: Wed, 24 Oct 2012 05:31:52 +0000 (+0200) Subject: stream_socket_accept return value verified X-Git-Tag: v4.0.0~34 X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=4651656d8aac1a637f541e1c9b3a026461ca7b19;p=brisk.git stream_socket_accept return value verified --- diff --git a/web/Obj/sac-a-push.phh b/web/Obj/sac-a-push.phh index fa78539..8f0dbc3 100644 --- a/web/Obj/sac-a-push.phh +++ b/web/Obj/sac-a-push.phh @@ -324,7 +324,10 @@ class Sac_a_push { } if ($sock === $this->list) { printf("NUOVA CONNEX\n"); - $new_unix = stream_socket_accept($this->list); + if (($new_unix = stream_socket_accept($this->list)) == FALSE) { + printf("SOCKET_ACCEPT FAILED\n"); + continue; + } $stream_info = ""; $method = ""; $get = array();