From 4651656d8aac1a637f541e1c9b3a026461ca7b19 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 24 Oct 2012 07:31:52 +0200 Subject: [PATCH] stream_socket_accept return value verified --- web/Obj/sac-a-push.phh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.17.1