While trying to investigate behaviour when Roxie reports "Too many active queries" in http, I found a couple of issues:
1. Default timeout on HTTP keepalive is 5000 - which appears to be regarded as 5000 seconds (probably not intended).
2. Should not leave socket open for further requests after reporting a "Too many active queries" error.