Search code examples
phpmongodbpersistent-connection

PHP and persistent connections


Whenever I open a persistent connection to the DB , if the DB daemon crashes and is then restarted, 30% of new connections to the daemon will result in a broken pipe error.

This is fixable by changing the persistent connection handle, but it needs to be done manually. Is there a solution that can fix the broken pipe errors without changing the handle?


Solution

  • Your problem is with

    DB daemon crashes and is then restarted

    This is what you need to fix... Look through the logs to find the problem...

    Finding alternative fix is equivalent of applying a bandage on a broken arm. alt text