Adam Prime wrote: > What I wanted to do was fix this issue: > > http://rt.cpan.org/Public/Bug/Display.html?id=36346 > > either by checking the various server starting variables for each of the > apis, or simply throwing an eval around the push_handler.
I've been looking into this bug a bit tonight, and it seems to me that the problem is maybe with restart_count. This code: if (Apache2::ServerUtil::restart_count() == 1) { debug(2, "$prefix skipping connection during server startup, read the docu !!"); return $drh->connect(@args); } appears earlier in the connect function, and based on the comments, it would appear that any connection to the database that happens during startup (which to me should mean any time before the end of the ChildInitPhase) should not be cached. The problem is PostConfig is run twice on startup, once with restart_count == 1, and once with restart_count == 2. So the second time through, it gets past that if statement, and blows up when it hits the code that tries to push_handler(). The documentation here is also no longer true: http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_restart_count_ If I put that code into my startup.pl, i get: cnt: 1 cnt: 2 cnt: 3 cnt: 4 cnt: 5 cnt: 6 cnt: 7 I'm going to fool around with things a bit more. Adam --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org For additional commands, e-mail: dev-h...@perl.apache.org