Bug #64536 [NEW]: socket_read: the connection is hung

From: Date: Thu, 28 Mar 2013 07:47:25 +0000
Subject: Bug #64536 [NEW]: socket_read: the connection is hung
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178161@lists.php.net to get a copy of this message
From: perepechaev at inbox dot ru Operating system: FreeBSD 8.2-RELEASE i386 PHP version: 5.4.13 Package: ncurses related Bug Type: Bug Bug description:socket_read: the connection is hung Description: ------------ I run a connection and get a break when trying to resize a window Test script: --------------- <?php $address = 'localhost'; $port = 9002; $socket = @socket_create( AF_INET, SOCK_STREAM, SOL_TCP); $connected = 0; if ( $socket ){ $conected = socket_connect( $socket, $address, $port); } ncurses_init(); ncurses_refresh(); while (true){ $server = @socket_read( $socket, 1024 * 8); if ( $server ){ ncurses_addstr("SERVER\n"); } else { // ERROR: Interrupted system call ncurses_addstr("ERROR: " . socket_strerror(socket_last_error($socket)) . "\n"); } ncurses_refresh(); } -- Edit bug report at https://bugs.php.net/bug.php?id=64536&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64536&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64536&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64536&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64536&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64536&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64536&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64536&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64536&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64536&r=support Expected behavior: https://bugs.php.net/fix.php?id=64536&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64536&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64536&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64536&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64536&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64536&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64536&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64536&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64536&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64536&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64536&r=mysqlcfg

« previous php.bugs (#178161) next »