On Mon, Jan 12, 2009 at 9:52 AM, Jared Johnson <jar...@nmgi.com> wrote: > Robert Spier wrote: >> >> What's the point of this? If you need the hostname in the pre-connect >> hook you can look it up there from the IP address which you already >> have. > > If you need to look up the hostname on every incoming connection, it doesn't > seem sensible to do so yourself in a plugin, and then let QP do so again > afterward.
Does too. Looking up a hostname can take time, which will be wasted if you turn out not to care. And duplicate lookups will be cached. A compromise might involve a hostname method that will get the hostname if it hasn't looked it up already, which could be invoked (or left out!) from anywhere.