In article <bvvqa7$1urf$1@news.cybercity.dk>, Steen wrote:
> BUT i can NOT read (socket_read) %#%¤
>
> From my PHP script i get the following message :
> "Warning: socket_read() unable to read from socket [11]: Resource
> temporarily
> unavailable"
> When i use "netstat -nap" i can see that there is an entry "host.com:7010"
> and status is TIME_WAIT.
TIME_WAIT designates a closed connection waiting for duplicates in the
network to expire. This means that the server already has closed the
connection.
I would suggest going around PHP and use C or telnet to see what
happens. If errno is set at 11 we have an EAGAIN[1]. This indicates
that either your socket is non-blocking and no data was recieved or
the timeout value set on the socket expired.
Alternatively, look inside PHP to figure out what it does.
[1]
http://lxr.linux.no/source/include/asm-i386/errno.h#L14
--
j.