Bug #15091 Updated: socket_set_timeout not part of windows binary

From: Date: Fri, 18 Jan 2002 15:04:15 +0000
Subject: Bug #15091 Updated: socket_set_timeout not part of windows binary
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-77435@lists.php.net to get a copy of this message
ID: 15091 Updated by: sander Reported By: Rajkumar.Bellan@saint-gobain.com Old Status: Open Status: Feedback Bug Type: Sockets related Operating System: windows 2000 PHP Version: 4.1.1 New Comment: Why are you using $fsockopen and not fsockopen? That might be the cause of this bug. Previous Comments: ------------------------------------------------------------------------ [2002-01-17 18:32:04] Rajkumar.Bellan@saint-gobain.com Correction to my earlier report. When using socket_set_blocking($fp, false) I am "not" getting data every one second ------------------------------------------------------------------------ [2002-01-17 18:28:21] Rajkumar.Bellan@saint-gobain.com I am using windows binaries. $fp = $fsockopen(($ip_addr, $port_no, $errno, $errstr, 30); do { if (!feof($fp)) { $livedata = trim(fgets($fp,128)); echo $livedata."\n"; } else { break; } } while(true); when there is no data being sent by the server my script waits indefinitely at fgets. I tried using socket_set_blocking($fp, false) but that does get me data every one second. I tried to use socket_set_timeout that is when I found out it is not supported in windows binaries. Is there any other way to solve this problem in windows. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15091&edit=1

« previous php.dev (#77435) next »