Re: [PHP] nonblocking socket causes 100% cpu usage

2003-09-30 Thread Raditha Dissanayake
Hi, I don't think i saw your mail getting answered. This is unusual cause sockets taking up processor is something that i normaly associate with windows. Maybe if you could post a bit of your code we might be able to get a better idea about what's happening. Joe wrote: I have a commandline p

[PHP] nonblocking socket causes 100% cpu usage

2003-09-29 Thread Joe
I have a commandline php script, which opens a nonblocking socket to a server. Inside the message loop, where it polls the socket to determine whether there is any data to read/write, I've been running into problems, where the application takes as much CPU time as it can (80%, 90%, sometimes 99%,