igrigorik/em-proxy — pull request #22 by jib (2012-03-28 01:30:20+00:00)
Title: Add option to drop replies from duplex servers

I'd like your feedback on the following code change; it addresses an issue where the duplex servers take significantly longer to respond than the relay server and this causes the throughput of the proxy to drop significantly.

Please see this gist for an explanation and an Apache Benchmark session that illustrates the problem + solution:

https://gist.github.com/2222700

Now, I'm not very well versed in Ruby or EventMachine, so please let me know if this is the right way to insert this code, and if it's likely to have any (dangerous) side effects.

If it's a good solution, of course I'd appreciate it if you could pull it into master.

Thanks,

-Jos