apache/helix — pull request #4 by brandtg (2014-09-16 00:29:34+00:00)
Title: Back-pressure handler in NettyHelixIPCService

Removes hack in which Netty Channel was periodically closed to allow Netty objects to be GC'ed in favor of properly using channel writability changed events.

Before calling `Channel#writeAndFlush`, we call `BackPressureHandler#waitUntilWritable`, which will block if the channel is not writable until `#channelWritabilityChanged` is called.

Ran `BenchmarkDriver` locally to verify that heap usage stays relatively low and constant when NIC saturated.