0

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?

j0k
  • 22,600
  • 28
  • 79
  • 90
Kristina
  • 15,859
  • 29
  • 111
  • 181
  • If you have a reproducible case, please submit it to the Google Group (http://groups.google.com/group/mongodb-user). The developer of the PHP driver (Kristina) is on there nearly every day. She should be able to help you diagnose the problem. – Gates VP Dec 27 '10 at 06:54

1 Answers1

2

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

Alex
  • 6,441
  • 2
  • 25
  • 26
  • The DB server has never crashed before. But if it does, the "broken pipe" error will bring the whole application down. – Kristina Dec 27 '10 at 19:11
  • This problem occurs when mongo replica set master, for example. – Hett Aug 13 '14 at 05:23
  • This happens when the daemon doesn't crash as well, like when a network connection error occurs. In this case looking at the logs would be futile (however never a bad place to start for any reason). – Ross Jan 02 '15 at 04:22