David Sparks wrote:
I forgot why init() is called per connection in the async server? Something to do with changing plugins on the fly?
I dunno - I hate that too.
Right now my plugins are 30% management code to avoid reloading their config in init(). Does anyone else see a need for once only initialization hooks?
Yes. And it should be init(). There's post-fork, but in -async I think that's only called if you use -j > 1.
Matt.