saltstack/salt — pull request #5800 by s0undt3ch (2013-06-28 00:39:08+00:00)
Title: Provide a size aware buffer to be used in our non blocking `popen`.

Contents are stored up to a specific size. If more is needed, the internal buffer gets switched by a temporary file.