Error using sockets in PHP 5

From: Date: Wed, 21 Apr 2004 10:38:02 +0000
Subject: Error using sockets in PHP 5
Groups: php.general 
Request: Send a blank email to php-general+get-184114@lists.php.net to get a copy of this message
Hi, I have a problem using sockets in PHP 5. I create a socket in non-blocking mode, and when I read in that socket, socket_read() function waits for incoming data (as in a blocking socket). However, if I use system 'ltrace' in my script, I can see that: recv(3, 0x4078f1c4, 1, 0) = -1 EAGAIN (Resource temporarily unavailable) Why a socket_last_error() does not return nothing? Why socket_read() keeps waiting for data? Thanks for your help. -- Sergio Cinos http://www.alsernet.es - sergio@alsernet.es Tlf: 902 187 187 - Fax: 902 187 188

« previous php.general (#184114) next »