PHP daemon parent database connection lost -


i've problem designing quite simple php daemon process.

we've class establishes database connection, caches lots of data , can processing on data.

the daemon process ist started, instantiates class , binds socket wait requests. new child process spawned upon each request.

problem: database connection parent closed after first client disconnect (destructor called, database link lost).

any ideas?

let child process connect database or route database requests through parent process using ipc mechanism.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -