Bug #70198 [Opn->Csd]: Checking liveness does not work as expected

From: Date: Tue, 11 Aug 2015 13:23:33 +0000
Subject: Bug #70198 [Opn->Csd]: Checking liveness does not work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195117@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70198&edit=1 ID: 70198 Updated by: ab@php.net Reported by: shafreeck at 163 dot com Summary: Checking liveness does not work as expected -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: Linux PHP Version: master-Git-2015-08-06 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=24f0fe6b1f53e2d610dc27c04b0c6cd9927f4d4a Log: Fixed bug #70198 Checking liveness does not work as expected Previous Comments: ------------------------------------------------------------------------ [2015-08-06 01:02:25] shafreeck at 163 dot com Description: ------------ Syscall recv won't set errno if the call successes. So if errno is EWOULDBLOCK and the peer closed connection, recv returns 0 and errno remains EWOULDBLOCK. That will fail the if condition. The bug may confuse the users with some unexpected behavier. Github : https://github.com/php/php-src/pull/1456 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70198&edit=1

« previous php.bugs (#195117) next »