不要怂,就是干,撸起袖子干!

  1. 18 Dec, 2013 2 commits
    • Closing postgres client properly · 95fbc6fa
      This fixes a couple issues:
      
      * Multiple decrements of `pendingQueries` for the same query. Since we
        have a `complete` handler in addition to `success` and `error`,
        `endQuery` gets called twice if it's a success or an error. This
        means that we will end up with `pendingQueries < 0` so the
        disconnect condition is never satisfied.
      * We were hooking into pg's `drain` event during the disconnect step,
        this is already too late since most of the time, the drain event is
        already fired. We need to hook into the `drain` event on client
        creation. Sadly, we cannot close the connection on the `drain`
        event as it will break with the error,
        `Error: Stream unexpectedly ended during query execution`
      Anh-Kiet Ngo committed
  2. 13 Dec, 2013 1 commit
  3. 12 Dec, 2013 2 commits
  4. 10 Dec, 2013 3 commits
  5. 08 Dec, 2013 7 commits
  6. 07 Dec, 2013 1 commit
  7. 06 Dec, 2013 1 commit
  8. 05 Dec, 2013 3 commits
  9. 04 Dec, 2013 1 commit
  10. 02 Dec, 2013 1 commit
  11. 01 Dec, 2013 1 commit
  12. 29 Nov, 2013 7 commits
  13. 28 Nov, 2013 4 commits
  14. 27 Nov, 2013 6 commits