apache/spark — pull request #1303 by ngbinh (2014-07-04 11:27:17+00:00)
Title: SPARK-2368 Making FileServerHandler sends gracefully to prevent OOM

Busy wait for the channel to be ready before writing to it to prevent
the buffer from exploding.

Also making some small code changes for clarity.