in reply to running but not listening

Considering what you are running, I doubt what I am about to propose is the answer.  Now with the caveat out of the way... at any point in the telephone game you're playing (user => web page => your script => apache => access) would blocking I/O be a factor?  For IPC, I know this is an issue; not sure about sockets though.