Paul Querna wrote:
One thought I have been tossing around for a long time is tying the
proxy code into the Event MPM. Instead of a thread blocking while it
waits for a backend reply, the backend server's FD would be added to the
Event Thread, and then when the reply is ready, any available worker
thread would handle it, like they do new requests.
This would work well for backend servers that might take a second or two
for a reply, but it does add at least 3 context switches. (in some use
cases this would work great, in others, it would hurt performance...)
I don't think it would give any benefit. Well perhaps only on
forward proxies it could spare some keep-alive connections.
Regards,
Mladen.