~cmiller/desktopcouch/stable-updates

Viewing all changes in revision 96.

  • Committer: Chad Miller
  • Date: 2009-12-11 16:58:53 UTC
  • Revision ID: chad.miller@canonical.com-20091211165853-izbclpf7rm5r1gje
I made a bad assumption about port availibility, namely that once couchdb
writes its PID file, that the port is already open and we should be able to
discover it.  This is not true; there is a tiny fraction of time in which we
can suceed in getting the process ID, and then fail to get the port number.
This makes us raise an exception.  This timing bug problem happens regularly
on some classes of computers.

This is a backport of the fix applied to development trunk, with minimal
extra changes.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: